Skip to content

Commit 040f945

Browse files
committed
add debian build
1 parent 74e6165 commit 040f945

File tree

6 files changed

+420
-30
lines changed

6 files changed

+420
-30
lines changed

.github/dependabot.yaml

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
version: 2
2+
updates:
3+
- package-ecosystem: "github-actions"
4+
directory: "/"
5+
schedule:
6+
interval: daily
7+
time: "04:00"
8+
open-pull-requests-limit: 10
9+
assignees:
10+
- BeryJu
11+
- package-ecosystem: gitsubmodule
12+
directory: "/"
13+
schedule:
14+
interval: daily
15+
time: "04:00"
16+
open-pull-requests-limit: 10
17+
assignees:
18+
- BeryJu

.github/workflows/build.yaml

Lines changed: 65 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,65 @@
1+
name: Build
2+
3+
on:
4+
workflow_dispatch:
5+
push:
6+
branches:
7+
- 'main'
8+
tags:
9+
- 'v*'
10+
pull_request:
11+
branches:
12+
- 'main'
13+
14+
permissions:
15+
packages: write
16+
17+
jobs:
18+
build:
19+
strategy:
20+
fail-fast: false
21+
matrix:
22+
variants:
23+
- tag: ""
24+
label: "Default"
25+
- tag: "-fips"
26+
patches: fips.patch
27+
label: "FIPS"
28+
build_args: |
29+
BUILD_IMAGE=ghcr.io/goauthentik/fips-debian:trixie-slim-fips
30+
name: Build ${{ matrix.variants.label }}
31+
runs-on: ubuntu-latest
32+
steps:
33+
- uses: actions/checkout@v5
34+
with:
35+
fetch-depth: 0
36+
- uses: docker/setup-qemu-action@v3
37+
- uses: docker/setup-buildx-action@v3
38+
- id: tag
39+
run: |
40+
owner="${{ github.repository_owner }}"
41+
echo "org=$(echo $owner | tr '[:upper:]' '[:lower:]')" >> "$GITHUB_OUTPUT"
42+
- name: Apply patches
43+
run: |
44+
git apply ${{ matrix.variants.patches }} --allow-empty
45+
- uses: docker/login-action@v3
46+
with:
47+
registry: ghcr.io
48+
username: ${{ github.repository_owner }}
49+
password: ${{ secrets.GITHUB_TOKEN }}
50+
- id: meta
51+
uses: docker/metadata-action@v5
52+
with:
53+
images: ghcr.io/${{ steps.tag.outputs.org }}/guacd
54+
flavor: |
55+
latest=auto
56+
suffix=${{ matrix.variants.tag }}
57+
- uses: docker/build-push-action@v6.18.0
58+
with:
59+
push: ${{ github.event_name != 'pull_request' }}
60+
tags: ${{ steps.meta.outputs.tags }}
61+
labels: ${{ steps.meta.outputs.labels }}
62+
platforms: linux/amd64,linux/arm64
63+
context: .
64+
build-args: ${{ matrix.variants.build_args }}
65+
file: Dockerfile.debian

.github/workflows/pr-build.yml

Lines changed: 0 additions & 29 deletions
This file was deleted.

0 commit comments

Comments
 (0)