-
Notifications
You must be signed in to change notification settings - Fork 3
59 lines (46 loc) · 1.38 KB
/
release.yml
File metadata and controls
59 lines (46 loc) · 1.38 KB
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
48
49
50
51
52
53
54
55
56
57
58
59
name: release-rpm-and-deb
on:
push:
tags:
- "v*.*.*"
jobs:
release:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Set up Go
uses: actions/setup-go@v2
with:
go-version: 1.17
- name: Set up ruby
uses: ruby/setup-ruby@v1.99.0
with:
ruby-version: 3.1 # 3.1.1 is latest as of writing ... no other reason
- name: Set up fpm
run: gem install fpm
- name: Make
env:
TAG_NAME: ${{ github.ref_name }}
BUILD_NUMBER: ${{ github.run_number }}
run: make agent-rpm agent-deb --max-load=$(nproc)
- name: Make nodeletctl
env:
GOPRIVATE: github.com/platform9
GH_ACCESS_TOKEN: ${{ secrets.GH_ACCESS_TOKEN }}
run: |
cd nodeletctl
git config --global url.https://$GH_ACCESS_TOKEN@github.com/.insteadOf https://github.com/
go build .
- name: Create tar file
run: |
cp build/pf9-kube/rpmbuild/RPMS/x86_64/nodelet-*.rpm* ./
cp build/pf9-kube/nodelet-*.deb* ./
tar -cvzf ./pf9-nodelet.tar.gz ./nodelet-*.deb* ./nodelet-*.rpm*
- name: Release
uses: softprops/action-gh-release@v1
with:
files: |
build/pf9-kube/rpmbuild/RPMS/x86_64/nodelet-*.rpm*
build/pf9-kube/nodelet-*.deb*
nodeletctl/nodeletctl
pf9-nodelet.tar.gz