ci(gitlab-ci): Separation of build and manual rebuild of frontend-/backend-environment containers.
This commit is contained in:
parent
8b4801111d
commit
0d40207fe3
@ -44,6 +44,15 @@ container:
|
|||||||
- docker/backend/Dockerfile
|
- docker/backend/Dockerfile
|
||||||
interruptible: false
|
interruptible: false
|
||||||
|
|
||||||
|
container-manual:
|
||||||
|
stage: container
|
||||||
|
image: ${IMAGE_BUILDER}
|
||||||
|
script:
|
||||||
|
- buildah bud -t backend/${CI_COMMIT_REF_SLUG}:${BACKEND_IMAGE_VERSION} docker/backend/Dockerfile
|
||||||
|
- buildah push --creds "${CI_REGISTRY_USER}:${CI_JOB_TOKEN}" backend/${CI_COMMIT_REF_SLUG}:${BACKEND_IMAGE_VERSION} ${CI_REGISTRY_IMAGE}/backend/${CI_COMMIT_REF_SLUG}:${BACKEND_IMAGE_VERSION}
|
||||||
|
rules:
|
||||||
|
- when: manual
|
||||||
|
interruptible: false
|
||||||
|
|
||||||
compile:
|
compile:
|
||||||
stage: compile
|
stage: compile
|
||||||
|
|||||||
@ -42,6 +42,15 @@ container:
|
|||||||
rules:
|
rules:
|
||||||
- changes:
|
- changes:
|
||||||
- docker/frontend/Dockerfile
|
- docker/frontend/Dockerfile
|
||||||
|
interruptible: false
|
||||||
|
|
||||||
|
container-manual:
|
||||||
|
stage: container
|
||||||
|
image: ${IMAGE_BUILDER}
|
||||||
|
script:
|
||||||
|
- buildah bud -t frontend/${CI_COMMIT_REF_SLUG}:${FRONTEND_IMAGE_VERSION} docker/frontend/Dockerfile
|
||||||
|
- buildah push --creds "${CI_REGISTRY_USER}:${CI_JOB_TOKEN}" frontend/${CI_COMMIT_REF_SLUG}:${FRONTEND_IMAGE_VERSION} ${CI_REGISTRY_IMAGE}/frontend/${CI_COMMIT_REF_SLUG}:${FRONTEND_IMAGE_VERSION}
|
||||||
|
rules:
|
||||||
- when: manual
|
- when: manual
|
||||||
interruptible: false
|
interruptible: false
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user