From eb24bb1b97f22f60c38904086c404338e3f09dde Mon Sep 17 00:00:00 2001 From: filip Date: Fri, 13 Dec 2024 13:25:11 +0100 Subject: [PATCH] hotfix: improve readability for deployment workflow --- .github/workflows/chicmoz-prod.yml | 1 + scripts/{set_version_string.sh => generate_version_string.sh} | 0 scripts/production/deploy.sh | 2 +- 3 files changed, 2 insertions(+), 1 deletion(-) rename scripts/{set_version_string.sh => generate_version_string.sh} (100%) diff --git a/.github/workflows/chicmoz-prod.yml b/.github/workflows/chicmoz-prod.yml index ebd8e7a6..532b706d 100644 --- a/.github/workflows/chicmoz-prod.yml +++ b/.github/workflows/chicmoz-prod.yml @@ -48,6 +48,7 @@ jobs: for i in $(seq 1 $MAX_RETRIES); do if bash -x scripts/production/deploy.sh; then echo "Deployment successful" + bash scripts/generate_version_string.sh exit 0 fi echo "Attempt $i failed. Retrying in $RETRY_DELAY seconds..." diff --git a/scripts/set_version_string.sh b/scripts/generate_version_string.sh similarity index 100% rename from scripts/set_version_string.sh rename to scripts/generate_version_string.sh diff --git a/scripts/production/deploy.sh b/scripts/production/deploy.sh index a24ccab4..dba1b623 100755 --- a/scripts/production/deploy.sh +++ b/scripts/production/deploy.sh @@ -2,4 +2,4 @@ set -e -VERSION_STRING="$(scripts/set_version_string.sh)" skaffold run --filename "k8s/production/skaffold.production.light.yaml" --default-repo=registry.digitalocean.com/aztlan-containers +VERSION_STRING="$(scripts/generate_version_string.sh)" skaffold run --filename "k8s/production/skaffold.production.light.yaml" --default-repo=registry.digitalocean.com/aztlan-containers