Skip to content

Commit 6392011

Browse files
committed
Do not use an env var
1 parent 4e9ab6d commit 6392011

File tree

1 file changed

+4
-9
lines changed

1 file changed

+4
-9
lines changed

.github/workflows/ci-docker.yml

Lines changed: 4 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -12,11 +12,6 @@ jobs:
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

0 commit comments

Comments
 (0)