Cloud_Computing_II/.woodpecker.yml

49 lines
1.2 KiB
YAML
Raw Normal View History

2023-03-13 12:24:23 +00:00
pipeline:
generate_docker_tag:
image: golang
commands:
- echo -n "${CI_COMMIT_BRANCH//\//-}-${CI_COMMIT_SHA:0:8}, latest" > .tags
2023-03-13 13:58:56 +00:00
#when:
# path: [ "frontend/**", "backend/**" ]
# event: push
2023-03-13 12:24:23 +00:00
# -------------------------------------- Backend --------------------------------------
2023-03-13 14:01:29 +00:00
#build_backend:
# image: woodpeckerci/plugin-docker-buildx
# settings:
# repo:
# from_secret: repository_backend
# username:
# from_secret: registry_username
# password:
# from_secret: registry_password
# registry:
# from_secret: registry
2023-03-13 14:21:38 +00:00
# dockerfile: Dockerfile.Backend
2023-03-13 14:01:29 +00:00
# platforms: linux/amd64
# #when:
# # path: "backend/**"
# # event: push
2023-03-13 12:24:23 +00:00
# -------------------------------------- Frontend --------------------------------------
build_frontend:
image: woodpeckerci/plugin-docker-buildx
settings:
repo:
from_secret: repository_frontend
username:
from_secret: registry_username
password:
from_secret: registry_password
registry:
from_secret: registry
2023-03-13 14:21:38 +00:00
dockerfile: Dockerfile.Frontend
2023-03-13 12:24:23 +00:00
platforms: linux/amd64
2023-03-13 13:58:56 +00:00
#when:
# path: "frontend/**"
# event: push
2023-03-13 12:24:23 +00:00
branches: main