Skip to content

Commit

Permalink
Merge branch 'RESTAPI-868-investigate-how-to-expose-images-using-gith…
Browse files Browse the repository at this point in the history
…ub-container-registry' into 'master'

ci: fix syntax

See merge request firecrest/firecrest!265
  • Loading branch information
aledabin committed Jan 29, 2024
2 parents d2c5e89 + 058f06b commit cd665c3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .gitlab-ci.yml
Expand Up @@ -261,7 +261,7 @@ tag_release:
echo "Tagging images and helm charts for '$code_tag' deployment"
for tag in $env_tags; do
if [ "$code_tag" == "prod" && "$tag" != "prod" ]; then
if [ "$code_tag" == "prod" ] && [ "$tag" != "prod" ]; then
# if code_tag indicates prod and tag is 'v1...'
GH_USER = $(vault kv get -field=ghcr_pat_user firecrest/prod/)"
GH_PAT = $(vault kv get -field=ghcr_pat_token firecrest/prod/)"
Expand All @@ -273,7 +273,7 @@ tag_release:
echo "Tagging image ${CI_REGISTRY_GROUP}/$img/$tag"
jfrog rt copy --flat=true --url="https://${CI_REGISTRY}/artifactory" --user="${CI_REGISTRY_USER}" --password="${CI_REGISTRY_PASSWORD}" "${CI_REGISTRY_GROUP}/$img/${CI_COMMIT_SHORT_SHA}/" "${CI_REGISTRY_GROUP}/$img/$tag/";
if [ "$code_tag" == "prod" && "$tag" != "prod" && "$img" != "reservations" ]; then
if [ "$code_tag" == "prod" ] && [ "$tag" != "prod" ] && [ "$img" != "reservations" ]; then
# if code_tag indicates prod and tag is 'v1...', also publish to GitHub
crane copy ${CI_REGISTRY_PREFIX}/${img}:${tag} ghcr.io/eth-cscs/firecrest/f7t-${img}:${tag}
fi
Expand Down

0 comments on commit cd665c3

Please sign in to comment.