Skip to content

Commit

Permalink
fix image reference in deploy
Browse files Browse the repository at this point in the history
  • Loading branch information
a-type committed Apr 1, 2024
1 parent 86cb2f7 commit 97318bc
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,9 @@ jobs:
- uses: actions/checkout@v2
- uses: superfly/flyctl-actions/setup-flyctl@master

- name: Add SHORT_SHA env property with commit short sha
run: echo "SHORT_SHA=`echo ${GITHUB_SHA} | cut -c1-8`" >> $GITHUB_ENV

- name: Deploy API
# deploy the image from ghcr.io for the target sha
run: flyctl deploy --image ghcr.io/a-type/biscuits:${{ github.sha }}
# deploy the image from ghcr.io for the target sha (short version)
run: flyctl deploy --image ghcr.io/a-type/biscuits:sha-${SHORT_SHA}

0 comments on commit 97318bc

Please sign in to comment.