Skip to content

Commit f9c6a34

Browse files
committed
Separate Pretix ARM base build in it is own workflow
1 parent f4c6164 commit f9c6a34

File tree

1 file changed

+41
-0
lines changed

1 file changed

+41
-0
lines changed
Lines changed: 41 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,41 @@
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+
- uses: actions/checkout@v4
22+
with:
23+
repository: pretix/pretix
24+
ref: ${{ inputs.version }}
25+
- name: Login to Amazon ECR
26+
uses: aws-actions/amazon-ecr-login@v2
27+
- name: Set up Docker Buildx
28+
id: buildx
29+
uses: docker/setup-buildx-action@v3
30+
- name: Build pretix base
31+
uses: docker/build-push-action@v6
32+
id: build-pretix-base
33+
with:
34+
file: ./Dockerfile
35+
builder: ${{ steps.buildx.outputs.name }}
36+
provenance: false
37+
push: true
38+
tags: ghcr.io/pythonitalia/pycon/arm-pretix:${{ inputs.version }}
39+
cache-from: type=local,src=/tmp/.buildx-cache
40+
cache-to: type=local,dest=/tmp/.buildx-cache
41+
platforms: linux/arm64

0 commit comments

Comments
 (0)