ci(gitlab-ci): Separation of build and manual rebuild of frontend-/backend-environment containers.

This commit is contained in:
Stephan Barth 2024-08-25 03:11:13 +02:00
parent 8b4801111d
commit 0d40207fe3
2 changed files with 18 additions and 0 deletions

View File

@ -44,6 +44,15 @@ container:
- docker/backend/Dockerfile
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:
stage: compile

View File

@ -42,6 +42,15 @@ container:
rules:
- changes:
- 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
interruptible: false