Reduce ResourceKey's responsibility (#5451) #1323
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: publish_tool | |
on: | |
push: | |
branches: | |
- master | |
tags: | |
- 'v*' | |
env: | |
GHCR: ghcr.io | |
jobs: | |
tool: | |
runs-on: ubuntu-latest | |
permissions: | |
packages: write | |
strategy: | |
matrix: | |
image: | |
- actions-gh-release | |
- actions-plan-preview | |
- codegen | |
- piped-base | |
- piped-base-okd | |
- firestore-emulator | |
steps: | |
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2 | |
with: | |
fetch-depth: 0 | |
- name: Determine version | |
run: echo "PIPECD_VERSION=$(git describe --tags --always --abbrev=7)" >> $GITHUB_ENV | |
- uses: docker/setup-qemu-action@49b3bc8e6bdd4a60e6116a5414239cba5943d3cf # v3.2.0 | |
- uses: docker/setup-buildx-action@c47758b77c9736f4b2ef4073d4d51994fabfe349 # v3.7.1 | |
# Login to push container images. | |
- name: Log in to the container registry | |
uses: docker/login-action@49ed152c8eca782a232dede0303416e8f356c37b #v2.0.0 | |
with: | |
registry: ${{ env.GHCR }} | |
username: ${{ github.actor }} | |
password: ${{ secrets.GITHUB_TOKEN }} | |
# Building and pushing container images. | |
- name: Build and push ${{ matrix.image }} image | |
uses: docker/build-push-action@0565240e2d4ab88bba5387d719585280857ece09 #v5.0.0 | |
with: | |
context: tool/${{ matrix.image }} | |
tags: ${{ env.GHCR }}/pipe-cd/${{ matrix.image }}:${{ env.PIPECD_VERSION }} | |
platforms: linux/amd64,linux/arm64 | |
push: true |