-
Notifications
You must be signed in to change notification settings - Fork 136
47 lines (37 loc) · 1.08 KB
/
build.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
name: ci
on:
pull_request:
branches:
- main
push:
branches:
- main
jobs:
build:
name: build
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1
- uses: actions/setup-go@93397bea11091df50f3d7e59dc26a7711a8bcfbe # v2.1.5
with:
go-version-file: 'go.mod'
- name: build
run: |
make apko
./apko version
- name: Setup cosign (needed in CI tests)
uses: sigstore/cosign-installer@1fc5bd396d372bee37d608f955b336615edf79c8 # v3.2.0
- name: Setup crane (needed in CI tests)
uses: imjasonh/setup-crane@00c9e93efa4e1138c9a7a5c594acd6c75a2fbf0c # v0.3
- name: Run CI tests in hack/ci/
run: |
make ci
- uses: goreleaser/goreleaser-action@7ec5c2b0c6cdda6e8bbb49444bc797dd33d74dd8 # v2.8.1
with:
version: latest
install-only: true
- name: snapshot
timeout-minutes: 30
run: |
make snapshot
./dist/apko-build_linux_amd64_v1/apko version