Skip to content

Commit

Permalink
Fix image tag for GitHubActions
Browse files Browse the repository at this point in the history
  • Loading branch information
milashenko committed Mar 3, 2024
1 parent 81c541c commit c5c1546
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 2 additions & 0 deletions .github/workflows/aws.yml
Original file line number Diff line number Diff line change
Expand Up @@ -38,5 +38,7 @@ jobs:

- name: Test Env
id: testenv
env:
IMAGE_TAG: b${{ github.run_number }}a${{ github.run_attempt }}-${{ github.sha }}
run: |
./deploy-dev.sh
4 changes: 1 addition & 3 deletions deploy-dev.sh
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,7 @@ set -o xtrace
export PRIMARY_REGION="eu-central-1"
export ENV_NAME="dev"
export APP_NAME="ghost"
if [ ! -z "$CI" ]; then
IMAGE_TAG=${{ github.sha }}
else
if [ -z "$IMAGE_TAG" ]; then
IMAGE_TAG="local-`date -u +"%Y%m%dT%H%M%S"`"
fi
echo "IMAGE_TAG=$IMAGE_TAG"
Expand Down

0 comments on commit c5c1546

Please sign in to comment.