-
Notifications
You must be signed in to change notification settings - Fork 25
42 lines (42 loc) · 1.16 KB
/
release.yml
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
on:
release:
types:
- published
name: Build x86_64 Release
jobs:
build:
name: Build & Release
runs-on: ubuntu-20.04
strategy:
matrix:
include:
- goarch: amd64
goos: linux
env:
RELEASE_TAG: ${{secrets.RELEASE_TAG}}
GOOS: ${{ matrix.goos }}
GOARCH: ${{ matrix.goarch }}
steps:
- uses: actions/checkout@master
- uses: actions/setup-go@v4
with:
go-version: '1.22'
cache-dependency-path: subdir/go.sum
- name: check depends
run: sudo apt-get install -y libseccomp-dev
- name: generate resources
run: mkdir -p {build/data,build/static} && make generate
- name: package bin
run: SKIP_VALIDATE=true make
- name: package airgap image
run: make package-airgap
- name: sha256sum artifacts
run: cd dist/artifacts/ && sha256sum k8e k8e-airgap-images.tar.gz >> k8e-hashes.txt
- name: Uploading assets...
uses: softprops/action-gh-release@v1
with:
files: |
dist/artifacts/k8e
dist/artifacts/k8e-airgap-images.tar.gz
dist/artifacts/k8e-images.txt
dist/artifacts/k8e-hashes.txt