From 4ab51d747cbb0378798f7b67bba16e69e4dc1c20 Mon Sep 17 00:00:00 2001 From: aron Date: Thu, 29 Aug 2024 14:45:00 +0200 Subject: [PATCH] Initialize variable --- .gitlab-ci.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 444c74fab..03b0215d1 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -177,13 +177,13 @@ build-release: - VERSION_NUMBER=$(python3 -c "from packaging.version import Version;print(Version('${VERSION_NUMBER_LEADING_ZEROS}'))") # Ensure the version number is in the changelog for prod deployments - | + API_STATICS_IMAGE=$CI_REGISTRY_IMAGE/api-statics:$CI_COMMIT_TAG if [[ $CI_COMMIT_TAG =~ '^prod-.*' ]]; then grep -qE "^## (v${VERSION_NUMBER})" CHANGELOG.md || exit 1 CACHE_RELEASE_TAG=test-$VERSION_NUMBER_LEADING_ZEROS else CACHE_RELEASE_TAG=$CI_COMMIT_SHORT_SHA # Build and push api-statics - API_STATICS_IMAGE=$CI_REGISTRY_IMAGE/api-statics:$CI_COMMIT_TAG docker buildx build --provenance false --build-arg BUILDKIT_INLINE_CACHE=1 --cache-from $CI_REGISTRY_IMAGE/pdfviewer-dev:$ISO_WEEK --cache-from $CI_REGISTRY_IMAGE/frontend-dev:$ISO_WEEK --target=api-statics --platform linux/amd64,linux/arm64 --push -t $API_STATICS_IMAGE . fi # Build containers