-
Notifications
You must be signed in to change notification settings - Fork 143
52 lines (51 loc) · 1.54 KB
/
packages-ubuntu-18.04.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
48
49
50
51
52
name: Build packages for Ubuntu 18.04
on:
workflow_run:
workflows: ["Tests"]
branches: [ main ]
types:
- completed
push:
tags:
- v.*
jobs:
build-packages-ubuntu-1804:
name: Build packages for Ubuntu 18.04
if: ${{ github.event.workflow_run.conclusion == 'success' }}
runs-on: ubuntu-latest
strategy:
matrix:
go:
- ^1
steps:
- name: Set up Go
uses: actions/setup-go@v5
with:
go-version: ${{ matrix.go }}
- name: Set up Ruby for package_cloud uploader to work
uses: ruby/setup-ruby@v1
with:
ruby-version: '2.7' # Version range or exact version of a Ruby version to use, using semvers version range syntax.
- name: Install packaging dependencies
run: |
sudo apt-get install libcairo2-dev mercurial pkg-config wget -y
gem install package_cloud
- name: Check out code into the Go module directory
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Set up QEMU
uses: docker/setup-qemu-action@v3
- name: Log in to GitHub Docker Registry
uses: docker/login-action@v3
with:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Create packages
env:
BUILD_PACKAGES: true
PACKAGECLOUD_TOKEN: ${{ secrets.PACKAGECLOUD_TOKEN }}
run: |
wget "https://raw.githubusercontent.com/go-graphite/helper-scripts/main/build.sh" && chmod +x ./build.sh
./build.sh carbonapi "ubuntu:18.04"