Skip to content

Commit

Permalink
ci: Force delete all existing buildx resources before building image (q…
Browse files Browse the repository at this point in the history
  • Loading branch information
KShivendu authored and timvisee committed May 9, 2024
1 parent f50adc2 commit 3f7353c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/dev-docker-image-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ jobs:
ref: ${{ github.ref.name }}
- name: Build the Docker image
run: |
buildx_containers=$(docker container ls -qf "name=buildx_buildkit")
buildx_containers=$(docker container ls -a -qf "name=buildx_buildkit")
buildx_volumes=$(docker volume ls -qf "name=buildx_buildkit")
if [ -n "$buildx_containers" ]; then
Expand All @@ -25,7 +25,7 @@ jobs:
if [ -n "$buildx_volumes" ]; then
echo "Buildx volumes to delete: " "$buildx_volumes"
docker volume rm "$buildx_volumes"
docker volume rm -f "$buildx_volumes"
fi
branch=${GITHUB_REF_NAME//\//-} # replace all / with -
Expand Down

0 comments on commit 3f7353c

Please sign in to comment.