Skip to content

Commit 7a07ad4

Browse files
committed
Update test workflow to delete existing images before pushing to test permissions
1 parent fd5fc54 commit 7a07ad4

1 file changed

Lines changed: 7 additions & 1 deletion

File tree

.github/workflows/test-push.yml

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,13 @@ jobs:
2828
username: ${{ github.actor }}
2929
password: ${{ secrets.GITHUB_TOKEN }}
3030

31-
- name: Build and test push
31+
- name: Delete existing test images
32+
run: |
33+
docker pull ghcr.io/tg9541/${{ matrix.test-image }}:latest 2>/dev/null || true
34+
docker rmi ghcr.io/tg9541/${{ matrix.test-image }}:latest 2>/dev/null || true
35+
continue-on-error: true
36+
37+
- name: Build and push test image
3238
uses: docker/build-push-action@v4
3339
with:
3440
context: .

0 commit comments

Comments
 (0)