Skip to content

Create a command similar to build-minirootfs for CPIO #3340

Create a command similar to build-minirootfs for CPIO

Create a command similar to build-minirootfs for CPIO #3340

Workflow file for this run

name: ci
on:
pull_request:
branches: [ "main" ]
push:
branches: [ "main" ]
jobs:
build:
name: build
runs-on: ubuntu-latest
permissions:
contents: read
steps:
- uses: step-security/harden-runner@0d381219ddf674d61a7572ddd19d7941e271515c # v2.9.0
with:
egress-policy: audit
- uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7
- uses: actions/setup-go@0a12ed9d6a96ab950c8f026ed9f722fe0da7ef32 # v2.1.5
with:
go-version-file: 'go.mod'
check-latest: true
- name: build
run: |
make apko
./apko version
- name: Setup cosign (needed in CI tests)
uses: sigstore/cosign-installer@59acb6260d9c0ba8f4a2f9d9b48431a222b68e20 # v3.5.0
- name: Setup crane (needed in CI tests)
uses: imjasonh/setup-crane@31b88efe9de28ae0ffa220711af4b60be9435f6e # v0.4
- name: Run CI tests in hack/ci/
run: |
make ci
- uses: goreleaser/goreleaser-action@286f3b13b1b49da4ac219696163fb8c1c93e1200 # v2.8.1
with:
install-only: true
- name: snapshot
timeout-minutes: 30
run: |
make snapshot
./dist/apko-build_linux_amd64_v1/apko version