-
Notifications
You must be signed in to change notification settings - Fork 1
42 lines (37 loc) · 1.08 KB
/
build.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
name: build
on:
push:
workflow_dispatch:
jobs:
build:
strategy:
matrix:
include:
- dockerfile-suffix: ""
tag-suffix: ""
- dockerfile-suffix: ".unsafe"
tag-suffix: "-unsafe"
runs-on: ubuntu-latest
permissions:
contents: read
packages: write
steps:
- name: Checkout
uses: actions/checkout@v4
with:
submodules: recursive
- name: Get version
id: version
run: echo "VERSION=$(cat tailscale/VERSION.txt)" >> $GITHUB_OUTPUT
- name: Build
uses: ngc7331/actions@docker-build
with:
name: derper
version: ${{ steps.version.outputs.VERSION }}
suffix: ${{ matrix.tag-suffix }}
suffix_detailed: ${{ matrix.tag-suffix }}
file: ./Dockerfile${{ matrix.dockerfile-suffix }}
platforms: linux/amd64,linux/arm64,linux/riscv64
DOCKERHUB_USER: ${{ secrets.DOCKERHUB_USER }}
DOCKERHUB_PASS: ${{ secrets.DOCKERHUB_PASS }}
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}