Skip to content

Merge pull request #20 from kcp-dev/issue-4 #17

Merge pull request #20 from kcp-dev/issue-4

Merge pull request #20 from kcp-dev/issue-4 #17

Workflow file for this run

name: image
on:
push:
branches: ['main']
workflow_dispatch:
permissions:
contents: read
packages: write
id-token: write
jobs:
image:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-go@v4
with:
go-version: ^1.19
check-latest: true
- uses: imjasonh/[email protected]
env:
KO_DOCKER_REPO: ghcr.io/${{ github.repository }}/
- env:
auth_token: ${{ secrets.auth_token }}
run: |
echo "${{ github.token }}" | ko login ghcr.io --username "${{ github.actor }}" --password-stdin
ko build -B --platform=all -t latest -t ${{ github.sha }} ./cmd/*