55 lines
1.2 KiB
YAML
55 lines
1.2 KiB
YAML
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@v2
|
|
-
|
|
name: gh-describe
|
|
id: gittag
|
|
uses: proudust/gh-describe@v1.4.6
|
|
-
|
|
name: set up QEMU
|
|
uses: docker/setup-qemu-action@v1
|
|
-
|
|
name: set up buildx
|
|
id: buildx
|
|
uses: docker/setup-buildx-action@v1
|
|
with:
|
|
buildkitd-flags: --debug
|
|
-
|
|
name: login to docker hub
|
|
uses: docker/login-action@v1
|
|
with:
|
|
username: ${{ secrets.DOCKERHUB_USERNAME }}
|
|
password: ${{ secrets.DOCKERHUB_TOKEN }}
|
|
-
|
|
name: build
|
|
run: cd contrib/docker && GIT_BRANCH=${GITHUB_REF##*/} LIMITARCH=${{ github.event.inputs.limitarch }} GIT_REVISION=${{ steps.gittag.outputs.describe }} ./build.sh
|