-
Notifications
You must be signed in to change notification settings - Fork 42
47 lines (45 loc) · 1.95 KB
/
release.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: release
on:
push:
tags:
- v[0].[0-9]+.[0-9]+
jobs:
upload-release-assets:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v3
- name: Install cross-compilation tools
run: |
set -ex
sudo apt-get update
sudo apt-get install -y gcc-aarch64-linux-gnu musl-tools
- name: Build artifacts for arm64/amd64
run: make build-all
- name: Create checksums and tarballs
run: |
set -ex
echo "Creating checksums and tarballs"
cd .build/linux-amd64
sha256sum signoz-collector > signoz-collector-linux-amd64.sha256
tar -czvf signoz-collector-linux-amd64.tar.gz signoz-collector
sha256sum signoz-schema-migrator > signoz-schema-migrator-linux-amd64.sha256
tar -czvf signoz-schema-migrator-linux-amd64.tar.gz signoz-schema-migrator
cd ../linux-arm64
sha256sum signoz-collector > signoz-collector-linux-arm64.sha256
tar -czvf signoz-collector-linux-arm64.tar.gz signoz-collector
sha256sum signoz-schema-migrator > signoz-schema-migrator-linux-arm64.sha256
tar -czvf signoz-schema-migrator-linux-arm64.tar.gz signoz-schema-migrator
- name: Create release and upload assets
uses: softprops/action-gh-release@v1
with:
files: |
.build/linux-amd64/signoz-collector-linux-amd64.sha256
.build/linux-amd64/signoz-collector-linux-amd64.tar.gz
.build/linux-arm64/signoz-collector-linux-arm64.sha256
.build/linux-arm64/signoz-collector-linux-arm64.tar.gz
.build/linux-amd64/signoz-schema-migrator-linux-amd64.sha256
.build/linux-amd64/signoz-schema-migrator-linux-amd64.tar.gz
.build/linux-arm64/signoz-schema-migrator-linux-arm64.sha256
.build/linux-arm64/signoz-schema-migrator-linux-arm64.tar.gz
generate_release_notes: true