chore(deps): bump github.com/alecthomas/kong from 1.6.0 to 1.7.0 in the gomod group #329
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: build | |
on: | |
pull_request: | |
branches: | |
- main | |
permissions: {} | |
jobs: | |
build-snapshot: | |
permissions: | |
contents: read | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2 | |
with: | |
ref: ${{ github.event.pull_request.head.sha }} | |
- uses: actions/setup-go@f111f3307d8850f501ac008e886eec1fd1932a34 # v5.3.0 | |
with: | |
go-version: stable | |
- uses: goreleaser/goreleaser-action@9ed2f89a662bf1735a48bc8557fd212fa902bebf # v6.1.0 | |
id: goreleaser | |
with: | |
version: latest | |
args: build --clean --verbose --single-target --snapshot | |
- name: tar up binaries | |
run: tar -cvf dist.tar dist | |
- uses: actions/upload-artifact@65c4c4a1ddee5b72f698fdd19549f0f0fb45cf08 # v4.6.0 | |
with: | |
path: dist.tar | |
build-image: | |
permissions: | |
contents: read | |
packages: write | |
runs-on: ubuntu-latest | |
needs: build-snapshot | |
strategy: | |
matrix: | |
binary: | |
- go-cli-github | |
- another-binary | |
steps: | |
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2 | |
with: | |
ref: ${{ github.event.pull_request.head.sha }} | |
- uses: actions/download-artifact@fa0a91b85d4f404e444e00e005971372dc801d16 # v4.1.8 | |
- name: untar binaries | |
run: tar -xvf artifact/dist.tar | |
- name: Login to GHCR | |
if: github.actor != 'dependabot[bot]' | |
uses: docker/login-action@9780b0c442fbb1117ed29e0efdff1e18412f7567 # v3.3.0 | |
with: | |
registry: ghcr.io | |
username: ${{ github.repository_owner }} | |
password: ${{ secrets.GITHUB_TOKEN }} | |
- name: Get Docker metadata | |
if: github.actor != 'dependabot[bot]' | |
id: docker_metadata | |
uses: docker/metadata-action@369eb591f429131d6889c46b94e711f089e6ca96 # v5.6.1 | |
with: | |
images: ghcr.io/${{ github.repository }}/${{ matrix.binary }} | |
- name: Build and push ${{ matrix.binary }} container image | |
if: github.actor != 'dependabot[bot]' | |
uses: docker/build-push-action@ca877d9245402d1537745e0e356eab47c3520991 # v6.13.0 | |
with: | |
push: true | |
tags: ${{ steps.docker_metadata.outputs.tags }} | |
labels: ${{ steps.docker_metadata.outputs.labels }} | |
file: Dockerfile | |
build-args: BINARY=${{ matrix.binary }} | |
context: dist/${{ matrix.binary }}_linux_amd64_v1 | |
check-tag: | |
permissions: | |
contents: read | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2 | |
with: | |
fetch-depth: 0 | |
- id: ccv | |
uses: smlx/ccv@7318e2f25a52dcd550e75384b84983973251a1f8 # v0.10.0 | |
with: | |
write-tag: false | |
- run: | | |
echo "new-tag=$NEW_TAG" | |
echo "new-tag-version=$NEW_TAG_VERSION" | |
env: | |
NEW_TAG: ${{steps.ccv.outputs.new-tag}} | |
NEW_TAG_VERSION: ${{steps.ccv.outputs.new-tag-version}} |