add fly tag to docker image
change
commit dabc451647004d2719101f4741a808c53090248d
author Alpha Chen <alpha@kejadlen.dev>
date
parent 19ab28f2
diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml
index ad4a203..4377344 100644
--- a/.github/workflows/deploy.yml
+++ b/.github/workflows/deploy.yml
@@ -14,6 +14,16 @@ jobs:
     concurrency: deploy-group
     steps:
       - uses: actions/checkout@v4
+
+      - uses: docker/login-action@v3
+        with:
+          registry: ghcr.io
+          username: ${{ github.actor }}
+          password: ${{ secrets.GITHUB_TOKEN }}
+      - run: |
+          docker tag ${{ github.repository }}:$(git rev-parse --short HEAD) ${{ github.repository }}:fly
+          docker push ${{ github.repository }}
+
       - uses: superfly/flyctl-actions/setup-flyctl@master
       - run: flyctl deploy --remote-only
         env: