File tree Expand file tree Collapse file tree 1 file changed +5
-3
lines changed
Expand file tree Collapse file tree 1 file changed +5
-3
lines changed Original file line number Diff line number Diff line change 1616 uses : actions/checkout@v3
1717
1818 - name : Set up latest git tag
19- run : echo "TAG=$(git describe --tags)" >> $GITHUB_ENV
19+ run : |
20+ TAG=${{ github.event.release.tag_name }}
21+ echo "VERSION=${TAG#v}" >> $GITHUB_ENV
2022
2123 - name : Set up container name
2224 run : echo "CONTAINER_NAME=${REPOSITORY,,}" >> $GITHUB_ENV
4042 - name : Docker build
4143 run : |
4244 docker build -t ghcr.io/${{ env.CONTAINER_NAME }}:latest .
43- docker build -t ghcr.io/${{ env.CONTAINER_NAME }}:${{ env.TAG }} .
45+ docker build -t ghcr.io/${{ env.CONTAINER_NAME }}:${{ env.VERSION }} .
4446
4547 # Publish
4648
5052 - name : GitHub (GHCR) push
5153 run : |
5254 docker push ghcr.io/${{ env.CONTAINER_NAME }}:latest
53- docker push ghcr.io/${{ env.CONTAINER_NAME }}:${{ env.TAG }}
55+ docker push ghcr.io/${{ env.CONTAINER_NAME }}:${{ env.VERSION }}
5456
5557 - name : Install and configure the Koyeb CLI
5658 uses : koyeb-community/install-koyeb-cli@v2
You can’t perform that action at this time.
0 commit comments