File tree Expand file tree Collapse file tree 1 file changed +4
-9
lines changed
Expand file tree Collapse file tree 1 file changed +4
-9
lines changed Original file line number Diff line number Diff line change 1212 build-and-publish :
1313 runs-on : ubuntu-latest
1414
15- defaults :
16- run :
17- env :
18- SNITCH_TOOLCHAIN_REPO : snitch-toolchain
19-
2015 steps :
2116 - name : Checkout Repository
2217 uses : actions/checkout@v2
@@ -30,11 +25,11 @@ jobs:
3025
3126 - name : Build and Push Docker Image
3227 run : |
33- docker buildx build -t ghcr.io/${{ github.repository_owner }}/${SNITCH_TOOLCHAIN_REPO} :${{ github.sha }} -f snitch/docker/Dockerfile .
34- docker push ghcr.io/${{ github.repository_owner }}/${SNITCH_TOOLCHAIN_REPO} :${{ github.sha }}
28+ docker buildx build -t ghcr.io/${{ github.repository_owner }}/snitch-toolchain :${{ github.sha }} -f snitch/docker/Dockerfile .
29+ docker push ghcr.io/${{ github.repository_owner }}/snitch-toolchain :${{ github.sha }}
3530 if [ "${{ github.ref }}" = "refs/heads/main" ]; then
36- docker buildx imagetools create ghcr.io/${{ github.repository_owner }}/${SNITCH_TOOLCHAIN_REPO} :${{ github.sha }} --tag ghcr.io/${{ github.repository_owner }}/${SNITCH_TOOLCHAIN_REPO} :latest
37- docker push ghcr.io/${{ github.repository_owner }}/${SNITCH_TOOLCHAIN_REPO} :latest
31+ docker buildx imagetools create ghcr.io/${{ github.repository_owner }}/snitch-toolchain :${{ github.sha }} --tag ghcr.io/${{ github.repository_owner }}/snitch-toolchain :latest
32+ docker push ghcr.io/${{ github.repository_owner }}/snitch-toolchain :latest
3833 else
3934 echo "Not on the main branch, skipping push to latest tag."
4035 fi
You can’t perform that action at this time.
0 commit comments