Skip to content

Commit

Permalink
Fix review feedback issues
Browse files Browse the repository at this point in the history
Signed-off-by: d-kuro <[email protected]>
  • Loading branch information
d-kuro committed Jun 24, 2023
1 parent 89e5ede commit 7768a77
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 14 deletions.
15 changes: 2 additions & 13 deletions .github/workflows/build-mysqld-exporter-container.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ on:

jobs:
build:
runs-on: larger_runner_16core
runs-on: ${{ vars.IMAGE_BUILD_RUNNER || 'ubuntu-20.04' }}
steps:
- uses: actions/checkout@v3
- uses: docker/setup-qemu-action@v2
Expand All @@ -38,21 +38,10 @@ jobs:
echo "TAG=$(cat ./mysqld_exporter/TAG)" >> $GITHUB_ENV
- uses: docker/build-push-action@v4
if: github.ref == 'refs/heads/main'
with:
context: containers/mysqld_exporter/.
platforms: linux/amd64,linux/arm64
push: true
tags: ghcr.io/cybozu-go/moco/mysqld_exporter:${{ env.TAG }}
cache-from: type=gha
cache-to: type=gha,mode=max

- uses: docker/build-push-action@v4
if: github.event_name == 'pull_request'
with:
context: containers/mysqld_exporter/.
platforms: linux/amd64,linux/arm64
push: false
push: ${{ github.ref == 'refs/heads/main' }}
tags: ghcr.io/cybozu-go/moco/mysqld_exporter:${{ env.TAG }}
cache-from: type=gha
cache-to: type=gha,mode=max
2 changes: 1 addition & 1 deletion containers/mysqld_exporter/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,4 +5,4 @@ This directory provides a Dockerfile to build a Docker container that runs [mysq
Docker images
-------------

Docker images are available on [ghcr.io](https://github.com/cybozu-go/moco/pkgs/container/moco%2Fmysqld_exporter)
Docker images are available on [ghcr.io](https://github.com/cybozu-go/moco/pkgs/container/moco/mysqld_exporter)

0 comments on commit 7768a77

Please sign in to comment.