Skip to content

Merge pull request #44 from ahrtr/dependabot/github_actions/golangci/… #61

Merge pull request #44 from ahrtr/dependabot/github_actions/golangci/…

Merge pull request #44 from ahrtr/dependabot/github_actions/golangci/… #61

Workflow file for this run

name: Publish
on:
- push
- workflow_dispatch
jobs:
goversion:
uses: ./.github/workflows/go-version.yaml
publish-tagged:
if: |
startsWith(github.ref, 'refs/tags/v') &&
!github.event.pull_request.head.repo.fork
runs-on: ubuntu-latest
needs: goversion
steps:
- uses: actions/checkout@v4
- uses: actions/setup-go@v5
with:
go-version: ${{ needs.goversion.outputs.goversion }}
- uses: ko-build/setup-ko@v0.6
name: Setup ko
- name: Run ko publish for ghcr.io
env:
KO_DOCKER_REPO: ghcr.io/${{ github.repository_owner }}
run: |
export COMMIT=${{ github.sha}}
export TAG=$(echo ${{ github.ref }} | cut -d "/" -f 3 - )
ko publish ./ --base-import-paths --platform=linux/amd64,linux/arm64 --tags $TAG
ko publish ./ --base-import-paths --platform=linux/amd64,linux/arm64