Skip to content

Commit

Permalink
Fix workflow
Browse files Browse the repository at this point in the history
Signed-off-by: d-kuro <kurosawa7620@gmail.com>
  • Loading branch information
d-kuro committed May 31, 2023
1 parent c09f9a0 commit 483272a
Showing 1 changed file with 3 additions and 8 deletions.
11 changes: 3 additions & 8 deletions .github/workflows/build-mysqld-exporter-container.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -31,21 +31,16 @@ jobs:
- name: Check TAG file
working-directory: containers
run: |
result="$(./tag_exists mysqld_exporter)"
result="$(./tag_exists moco/mysqld_exporter mysqld_exporter)"
if [ "$result" = ng ]; then
exit 1
fi
echo "TAG=$(cat ./mysqld_exporter/TAG)" >> $GITHUB_ENV
- name: Validate consistency between BRANCH and TAG
working-directory: containers
run: |
./tag_branch_consistency mysqld_exporter
- uses: docker/build-push-action@v4
if: github.ref == 'refs/heads/main'
with:
context: containers/fluent-bit/.
context: containers/mysqld_exporter/.
platforms: linux/amd64,linux/arm64
push: true
tags: ghcr.io/cybozu-go/moco/mysqld_exporter:${{ env.TAG }}
Expand All @@ -55,7 +50,7 @@ jobs:
- uses: docker/build-push-action@v4
if: github.event_name == 'pull_request'
with:
context: containers/fluent-bit/.
context: containers/mysqld_exporter/.
platforms: linux/amd64,linux/arm64
push: false
tags: ghcr.io/cybozu-go/moco/mysqld_exporter:${{ env.TAG }}
Expand Down

0 comments on commit 483272a

Please sign in to comment.