Skip to content

Commit

Permalink
ci: Added GitHub Action for building kine
Browse files Browse the repository at this point in the history
  • Loading branch information
Thomas Kosiewski committed Nov 12, 2024
1 parent 4a698dd commit 4b1d13a
Showing 1 changed file with 44 additions and 0 deletions.
44 changes: 44 additions & 0 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
name: Kine build

on:
workflow_dispatch:

jobs:
buildx:
name: Build kine image
runs-on: ubuntu-latest
permissions:
id-token: write
packages: write
contents: read
attestations: write

steps:
- name: Checkout
uses: actions/checkout@v4
- name: Set up QEMU
uses: docker/setup-qemu-action@v3
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3
- name: Login to ghcr.io
uses: docker/login-action@v3
with:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Build and push
id: push
uses: docker/build-push-action@v6
with:
platforms: linux/amd64,linux/arm64
push: true
sbom: true
provenance: true
tags: ghcr.io/loft-sh/kine:v${{ github.event.inputs.kine_version }}
- name: Attest
uses: actions/attest-build-provenance@v1
id: attest
with:
subject-name: ghcr.io/loft-sh/kine
subject-digest: ${{ steps.push.outputs.digest }}
push-to-registry: true

0 comments on commit 4b1d13a

Please sign in to comment.