Skip to content

Commit 69dd35e

Browse files
committed
Remove kaniko
1 parent b26c967 commit 69dd35e

File tree

12 files changed

+30
-431
lines changed

12 files changed

+30
-431
lines changed

.github/workflows/build-backend.yml

Lines changed: 27 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -8,17 +8,35 @@ on:
88
jobs:
99
build:
1010
name: Build
11-
runs-on: ${{ format('arm64-fargate-{0}{1}{2}', github.run_id, github.run_number, github.run_attempt) }}
11+
runs-on: [self-hosted]
1212
steps:
13+
- uses: actions/checkout@v4
14+
with:
15+
ref: ${{ github.ref }}
16+
fetch-depth: 0
1317
- name: Configure AWS credentials
1418
uses: aws-actions/configure-aws-credentials@v4
1519
with:
20+
aws-access-key-id: ${{ secrets.aws_access_key_id }}
21+
aws-secret-access-key: ${{ secrets.aws_secret_access_key }}
1622
aws-region: eu-central-1
17-
- name: Run kaniko
18-
run: |
19-
/kaniko/executor \
20-
--dockerfile=./Dockerfile \
21-
--context=git://github.com/${{ github.repository }}#${{ github.ref }} \
22-
--context-sub-path=./backend \
23-
--cache=true \
24-
--destination=${{ secrets.AWS_ACCOUNT_ID }}.dkr.ecr.eu-central-1.amazonaws.com/pythonit/pycon-backend:arm-${{ inputs.githash }}
23+
- name: Set up QEMU dependency
24+
uses: docker/setup-qemu-action@v3
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 and push
31+
uses: docker/build-push-action@v6
32+
with:
33+
context: ./backend
34+
file: ./backend/Dockerfile
35+
builder: ${{ steps.buildx.outputs.name }}
36+
provenance: false
37+
push: true
38+
tags: |
39+
${{ secrets.AWS_ACCOUNT_ID }}.dkr.ecr.eu-central-1.amazonaws.com/pythonit/pycon-backend:arm-${{ inputs.githash }}
40+
cache-from: type=local,src=/tmp/.buildx-cache
41+
cache-to: type=local,dest=/tmp/.buildx-cache
42+
platforms: linux/arm64

.github/workflows/build-frontend.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ on:
1111
jobs:
1212
build:
1313
name: Build
14-
runs-on: [self-hosted, arm64-fargate]
14+
runs-on: [self-hosted]
1515
steps:
1616
- uses: actions/checkout@v4
1717
with:

.github/workflows/build-pretix.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ on:
88
jobs:
99
build:
1010
name: Build pretix
11-
runs-on: [self-hosted, arm64-fargate]
11+
runs-on: [self-hosted]
1212
steps:
1313
- uses: actions/checkout@v4
1414
with:

.tool-versions

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,3 +3,4 @@ terraform 1.3.4
33
python 3.11.2
44
rust 1.61.0
55
pnpm 9
6+
opentofu 1.8.8

infrastructure/tools/.tool-versions

Lines changed: 0 additions & 1 deletion
This file was deleted.

infrastructure/tools/github_repo.tf

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

infrastructure/tools/github_runner_cluster.tf

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

infrastructure/tools/github_runner_lambda.tf

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

infrastructure/tools/github_runner_task.tf

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

infrastructure/tools/github_webhook.tf

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

0 commit comments

Comments
 (0)