-
-
Notifications
You must be signed in to change notification settings - Fork 132
57 lines (56 loc) · 1.28 KB
/
build.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
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
name: Build
on:
push:
branches:
- master
paths:
- 'src/**'
- 'autogen.sh'
- 'config*'
- 'Makefile*'
- 'make_debian.sh'
- 'contrib/docker/**'
workflow_dispatch:
inputs:
limitarch:
description: Limit to this architecture
required: false
type: choice
options:
- ''
- amd64
- '386'
- arm/v7
- arm64
jobs:
build:
runs-on: ubuntu-latest
steps:
-
name: checkout
uses: actions/checkout@v3
-
name: gh-describe
id: gittag
uses: proudust/[email protected]
-
name: set up QEMU
uses: docker/setup-qemu-action@v2
-
name: set up buildx
id: buildx
uses: docker/setup-buildx-action@v2
with:
buildkitd-flags: --debug
-
name: login to docker hub
uses: docker/login-action@v2
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}
-
name: build
run: cd contrib/docker && GIT_BRANCH=${GITHUB_REF##*/} ./build.sh
env:
GIT_REVISION: ${{ steps.gittag.outputs.describe }}
LIMITARCH: ${{ github.event.inputs.limitarch }}