chore(gitlab-ci): add changes rules to containers jobs
This commit is contained in:
parent
3f1e351d54
commit
303a6ca3f6
@ -56,26 +56,10 @@ frontend image:
|
||||
script:
|
||||
- buildah bud -t frontend docker/frontend/Dockerfile
|
||||
- buildah push --creds "${CI_REGISTRY_USER}:${CI_JOB_TOKEN}" frontend $CONTAINER_REGISTRY/frontend
|
||||
# - make -- --docker-build-frontend-build FRADRIVE_SERVICE=frontend CONTAINER_RUNNER=podman-compose
|
||||
# # - podman image save frontend | gzip > docker/frontend/image.tar.gz
|
||||
# artifacts:
|
||||
# paths:
|
||||
# - docker/frontend/image.tar.gz
|
||||
rules:
|
||||
- changes:
|
||||
- docker/frontend/Dockerfile
|
||||
|
||||
# push frontend image:
|
||||
# stage: containers
|
||||
# needs:
|
||||
# - job: build frontend image
|
||||
# artifacts: true
|
||||
# image: quay.io/skopeo/stable:latest
|
||||
# script:
|
||||
# - skopeo --insecure-policy copy --dest-creds "${CI_REGISTRY_USER}:${CI_JOB_TOKEN}" docker-archive://$(pwd)/docker/frontend/image.tar.gz docker://${CI_REGISTRY_IMAGE}:${VERSION}
|
||||
# - skopeo --insecure-policy copy --src-creds "${CI_REGISTRY_USER}:${CI_JOB_TOKEN}" --dest-creds "${CI_REGISTRY_USER}:${CI_JOB_TOKEN}" docker://${CI_REGISTRY_IMAGE}:${VERSION} docker://${CI_REGISTRY_IMAGE}:latest
|
||||
# #- *load-frontend-image
|
||||
# # - docker image tag
|
||||
# - podman push frontend
|
||||
# # variables:
|
||||
# # GIT_STRATEGY: none
|
||||
|
||||
backend image:
|
||||
stage: containers
|
||||
@ -83,21 +67,9 @@ backend image:
|
||||
script:
|
||||
- buildah bud -t backend docker/backend/Dockerfile
|
||||
- buildah push --creds "${CI_REGISTRY_USER}:${CI_JOB_TOKEN}" backend $CONTAINER_REGISTRY/backend
|
||||
# script:
|
||||
# - make -- --docker-build-backend-build FRADRIVE_SERVICE=backend CONTAINER_RUNNER=podman-compose
|
||||
# - podman image save backend | gzip > docker/backend/image.tar.gz
|
||||
# artifacts:
|
||||
# paths:
|
||||
# - docker/backend/image.tar.gz
|
||||
|
||||
# push backend image:
|
||||
# stage: containers
|
||||
# needs:
|
||||
# - job: backend image
|
||||
# artifacts: true
|
||||
# script:
|
||||
# - *load-backend-image
|
||||
# - podman push backend
|
||||
rules:
|
||||
- changes:
|
||||
- docker/backend/Dockerfile
|
||||
|
||||
|
||||
frontend build:
|
||||
|
||||
Reference in New Issue
Block a user