Skip to content

Commit fe25799

Browse files
committed
Use separately build pretix base image
1 parent e8795ae commit fe25799

File tree

2 files changed

+2
-26
lines changed

2 files changed

+2
-26
lines changed

.github/workflows/build-pretix.yml

Lines changed: 1 addition & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -20,30 +20,11 @@ jobs:
2020
aws-access-key-id: ${{ secrets.aws_access_key_id }}
2121
aws-secret-access-key: ${{ secrets.aws_secret_access_key }}
2222
aws-region: eu-central-1
23-
- uses: actions/checkout@v4
24-
with:
25-
repository: pretix/pretix
26-
ref: v2024.10.0
27-
path: ./pretix-clone
2823
- name: Login to Amazon ECR
2924
uses: aws-actions/amazon-ecr-login@v2
3025
- name: Set up Docker Buildx
3126
id: buildx
3227
uses: docker/setup-buildx-action@v3
33-
- name: Build pretix base
34-
uses: docker/build-push-action@v6
35-
id: build-pretix-base
36-
with:
37-
context: ./pretix-clone
38-
file: ./pretix-clone/Dockerfile
39-
builder: ${{ steps.buildx.outputs.name }}
40-
provenance: false
41-
push: true
42-
tags: |
43-
${{ secrets.AWS_ACCOUNT_ID }}.dkr.ecr.eu-central-1.amazonaws.com/pythonit/pretix:pretix-base-${{ inputs.githash }}
44-
cache-from: type=local,src=/tmp/.buildx-cache
45-
cache-to: type=local,dest=/tmp/.buildx-cache
46-
platforms: linux/arm64
4728
- name: Build and push pretix
4829
uses: docker/build-push-action@v6
4930
with:
@@ -52,10 +33,7 @@ jobs:
5233
builder: ${{ steps.buildx.outputs.name }}
5334
provenance: false
5435
push: true
55-
tags: |
56-
${{ secrets.AWS_ACCOUNT_ID }}.dkr.ecr.eu-central-1.amazonaws.com/pythonit/pretix:arm-${{ inputs.githash }}
36+
tags: ${{ secrets.AWS_ACCOUNT_ID }}.dkr.ecr.eu-central-1.amazonaws.com/pythonit/pretix:arm-${{ inputs.githash }}
5737
cache-from: type=local,src=/tmp/.buildx-cache
5838
cache-to: type=local,dest=/tmp/.buildx-cache
5939
platforms: linux/arm64
60-
build-args: |
61-
PRETIX_IMAGE=${{ secrets.AWS_ACCOUNT_ID }}.dkr.ecr.eu-central-1.amazonaws.com/pythonit/pretix:pretix-base-${{ inputs.githash }}

pretix/Dockerfile

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,4 @@
1-
# v2024.10.0
2-
ARG PRETIX_IMAGE
3-
FROM ${PRETIX_IMAGE}
1+
FROM ghcr.io/pythonitalia/pycon/arm-pretix:v2024.10.0
42

53
COPY ./settings.py /pretix/src/production_settings.py
64

0 commit comments

Comments
 (0)