-
Notifications
You must be signed in to change notification settings - Fork 0
39 lines (37 loc) · 1.03 KB
/
release.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
---
name: release
on:
release:
types:
- published
jobs:
build:
runs-on: ubuntu-latest
permissions:
contents: read
packages: write
timeout-minutes: 60
steps:
- uses: actions/checkout@v4
- uses: docker/[email protected]
- uses: docker/setup-buildx-action@v3
- uses: docker/login-action@v3
with:
registry: ghcr.io
username: ${{ github.repository_owner }}
password: ${{ secrets.GITHUB_TOKEN }}
- id: ev
run: |
echo "version=${GITHUB_REF#refs/tags/version/}" > "${GITHUB_OUTPUT}"
- uses: docker/build-push-action@v6
with:
context: .
push: true
tags: |
ghcr.io/authentik-community/krb5:${{ steps.ev.outputs.version }}
platforms: linux/amd64,linux/arm64
build-args: |
GIT_BUILD_HASH=${{ steps.ev.outputs.sha }}
VERSION=${{ steps.ev.outputs.version }}
cache-from: type=gha
cache-to: type=gha,mode=max