Skip to content

Commit

Permalink
Not exit with code 1 when tag is already exists
Browse files Browse the repository at this point in the history
  • Loading branch information
yamatcha committed Dec 5, 2023
1 parent c770058 commit 0219f39
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
3 changes: 2 additions & 1 deletion .github/workflows/build-fluent-bit-container.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -33,11 +33,12 @@ jobs:
run: |
result="$(./tag_exists moco/fluent-bit fluent-bit)"
if [ "$result" = ok ]; then
exit 1
exit 0
fi
echo "TAG=$(cat ./fluent-bit/TAG)" >> $GITHUB_ENV
- uses: docker/build-push-action@v5
if: env.TAG != null
with:
context: containers/fluent-bit/.
platforms: linux/amd64,linux/arm64
Expand Down
3 changes: 2 additions & 1 deletion .github/workflows/build-mysqld-exporter-container.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -33,11 +33,12 @@ jobs:
run: |
result="$(./tag_exists moco/mysqld_exporter mysqld_exporter)"
if [ "$result" = ok ]; then
exit 1
exit 0
fi
echo "TAG=$(cat ./mysqld_exporter/TAG)" >> $GITHUB_ENV
- uses: docker/build-push-action@v5
if: env.TAG != null
with:
context: containers/mysqld_exporter/.
platforms: linux/amd64,linux/arm64
Expand Down

0 comments on commit 0219f39

Please sign in to comment.