Skip to content

Commit abb524f

Browse files
authored
Separate Pretix ARM base build in it is own workflow (#4295)
1 parent f4c6164 commit abb524f

File tree

1 file changed

+45
-0
lines changed

1 file changed

+45
-0
lines changed
Lines changed: 45 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,45 @@
1+
name: Build base pretix image
2+
3+
concurrency: ${{ inputs.version }}
4+
5+
on:
6+
workflow_dispatch:
7+
inputs:
8+
version:
9+
description: 'The version of pretix to build. Example: v2024.10.0'
10+
required: true
11+
type: string
12+
13+
jobs:
14+
build:
15+
name: Build
16+
runs-on: [self-hosted]
17+
permissions:
18+
contents: read
19+
packages: write
20+
steps:
21+
- name: Log in to the Container registry
22+
uses: docker/login-action@v3
23+
with:
24+
registry: ghcr.io
25+
username: ${{ github.actor }}
26+
password: ${{ secrets.GITHUB_TOKEN }}
27+
- uses: actions/checkout@v4
28+
with:
29+
repository: pretix/pretix
30+
ref: ${{ inputs.version }}
31+
- name: Set up Docker Buildx
32+
id: buildx
33+
uses: docker/setup-buildx-action@v3
34+
- name: Build pretix base
35+
uses: docker/build-push-action@v6
36+
id: build-pretix-base
37+
with:
38+
context: .
39+
builder: ${{ steps.buildx.outputs.name }}
40+
provenance: false
41+
push: true
42+
tags: ghcr.io/pythonitalia/pycon/arm-pretix:${{ inputs.version }}
43+
cache-from: type=local,src=/tmp/.buildx-cache
44+
cache-to: type=local,dest=/tmp/.buildx-cache
45+
platforms: linux/arm64

0 commit comments

Comments
 (0)