Skip to content

Commit

Permalink
- fix docker rmi command if empty arguments (#296)
Browse files Browse the repository at this point in the history
fix docker rmi command if empty arguments
  • Loading branch information
mtracz authored Mar 20, 2023
1 parent be278d8 commit 525708a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/deploy-to-beta-manually.yml
Original file line number Diff line number Diff line change
Expand Up @@ -64,4 +64,4 @@ jobs:
git pull
git merge --no-commit --no-ff origin/main
make beta-deploy
docker images --filter dangling=true | grep "ghcr.io/blumilksoftware/toby" | awk '{print $3}'| xargs docker rmi
docker images --filter dangling=true | grep "ghcr.io/blumilksoftware/toby" | awk '{print $3}'| xargs --no-run-if-empty docker rmi
2 changes: 1 addition & 1 deletion .github/workflows/deploy-to-prod.yml
Original file line number Diff line number Diff line change
Expand Up @@ -57,4 +57,4 @@ jobs:
git checkout --force "${{ env.BRANCH_NAME }}"
git pull
make prod-deploy
docker images --filter dangling=true | grep "ghcr.io/blumilksoftware/toby" | awk '{print $3}'| xargs docker rmi
docker images --filter dangling=true | grep "ghcr.io/blumilksoftware/toby" | awk '{print $3}'| xargs --no-run-if-empty docker rmi

0 comments on commit 525708a

Please sign in to comment.