Merge pull request #751 from cybozu-go/bump-tools-1.29.0 #16
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: release-tools | |
on: | |
push: | |
tags: | |
- 'tools-*' | |
jobs: | |
release-cke-tools: | |
name: Release CKE tools image | |
runs-on: ubuntu-22.04 | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: actions/setup-go@v5 | |
with: | |
go-version-file: go.mod | |
- name: Build CKE tools | |
run: | | |
cd tools | |
make all | |
- name: Extract tag | |
id: extract-tag | |
run: echo "tag=${GITHUB_REF#refs/tags/tools-}" >> $GITHUB_OUTPUT | |
- name: Log in to ghcr.io | |
uses: docker/login-action@v3 | |
with: | |
registry: ghcr.io | |
username: ${{ github.actor }} | |
password: ${{ secrets.GITHUB_TOKEN }} | |
- name: Build and Push cke-tools | |
uses: docker/build-push-action@v5 | |
with: | |
context: ./tools | |
push: true | |
platforms: linux/amd64 | |
tags: ghcr.io/${{ github.repository_owner }}/cke-tools:${{ steps.extract-tag.outputs.tag }} | |
labels: org.opencontainers.image.source=https://github.com/${{ github.repository }} |