Skip to content

Commit

Permalink
Merge branch 'prebuild-docker-images' into 'main'
Browse files Browse the repository at this point in the history
Set test- tag for api-statics at prod releases

See merge request reportcreator/reportcreator!688
  • Loading branch information
aronmolnar committed Aug 30, 2024
2 parents 5a41a52 + ba70510 commit 583c9b5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion .gitlab-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -178,10 +178,10 @@ build-release:
- ISO_WEEK=$(date +%V)
# 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
API_STATICS_IMAGE=$CI_REGISTRY_IMAGE/api-statics:$CACHE_RELEASE_TAG
else
CACHE_RELEASE_TAG=$CI_COMMIT_SHORT_SHA
# Build and push api-statics
Expand Down

0 comments on commit 583c9b5

Please sign in to comment.