forked from k3s-io/kine
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
ci: Added GitHub Action for building kine
- Loading branch information
Thomas Kosiewski
committed
Nov 12, 2024
1 parent
4a698dd
commit 4b1d13a
Showing
1 changed file
with
44 additions
and
0 deletions.
There are no files selected for viewing
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
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 |