chore(gitlab-ci): add dependencies for dynamic jobs

This commit is contained in:
Sarah Vaupel 2024-08-23 21:58:35 +02:00
parent d2a80f20b6
commit 85d43f5b77

View File

@ -43,6 +43,9 @@ stages:
# TODO: documentation
dynamic:prepare:
stage: dynamic
before_script: &dynamic-before
- apt-get -y update
- apt-get -y install git
script:
- FRONTEND_IMAGE_VERSION=`git log docker/frontend/Dockerfile | grep '^commit' | wc --lines`
- BACKEND_IMAGE_VERSION=`git log docker/backend/Dockerfile | grep '^commit' | wc --lines`
@ -56,6 +59,7 @@ dynamic:execute:
stage: dynamic
needs:
- dynamic:prepare
before_script: *dynamic-before
trigger:
strategy: depend
include: