File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -21,17 +21,23 @@ jobs:
2121 username : ${{ github.actor }}
2222 password : ${{ secrets.GITHUB_TOKEN }}
2323
24+ - name : Extract version
25+ id : version
26+ run : echo "tag=$(node -p "require('./packages/client/package.json').version")" >> $GITHUB_OUTPUT
27+
2428 - name : Build and push
2529 uses : docker/build-push-action@v5
2630 with :
2731 context : .
2832 file : packages/server/Dockerfile
2933 push : true
30- tags : ghcr.io/a-saed/datum-server:latest
34+ tags : |
35+ ghcr.io/a-saed/datum-server:latest
36+ ghcr.io/a-saed/datum-server:${{ steps.version.outputs.tag }}
3137
3238 - name : Deploy to Fly.io
3339 uses : superfly/flyctl-actions@1.5
3440 with :
35- args : deploy --image ghcr.io/a-saed/datum-server:latest
41+ args : deploy --image ghcr.io/a-saed/datum-server:${{ steps.version.outputs.tag }}
3642 env :
3743 FLY_API_TOKEN : ${{ secrets.FLY_API_TOKEN }}
You can’t perform that action at this time.
0 commit comments