Skip to content

Commit 6f167f5

Browse files
committed
change
change change change change change pdates updates
1 parent f977798 commit 6f167f5

File tree

16 files changed

+275
-8
lines changed

16 files changed

+275
-8
lines changed

.editorconfig

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,5 +30,5 @@ indent_size = 2
3030
[Makefile]
3131
indent_style = tab
3232

33-
[*.tf]
33+
[{*.tf,*.tofu}]
3434
indent_size = 2

.github/workflows/build-backend.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
11-
runs-on: [self-hosted]
11+
runs-on: [self-hosted, arm64-fargate]
1212
steps:
1313
- uses: actions/checkout@v4
1414
with:

.github/workflows/build-frontend.yml

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -4,11 +4,14 @@ on:
44
githash:
55
required: true
66
type: string
7+
tf_environment:
8+
required: true
9+
type: string
710

811
jobs:
912
build:
1013
name: Build
11-
runs-on: [self-hosted]
14+
runs-on: [self-hosted, arm64-fargate]
1215
steps:
1316
- uses: actions/checkout@v4
1417
with:
@@ -30,13 +33,13 @@ jobs:
3033
- name: Get vars
3134
id: vars
3235
run: |
33-
cms_hostname=$(aws ssm get-parameter --output text --query Parameter.Value --with-decryption --name /pythonit/${{ env.TF_WORKSPACE }}/pycon-frontend/cms-hostname)
36+
cms_hostname=$(aws ssm get-parameter --output text --query Parameter.Value --with-decryption --name /pythonit/${{ inputs.tf_environment }}/pycon-frontend/cms-hostname)
3437
echo "CMS_HOSTNAME=$cms_hostname" >> "$GITHUB_OUTPUT"
3538
36-
conference_code=$(aws ssm get-parameter --output text --query Parameter.Value --with-decryption --name /pythonit/${{ env.TF_WORKSPACE }}/pycon-frontend/conference-code)
39+
conference_code=$(aws ssm get-parameter --output text --query Parameter.Value --with-decryption --name /pythonit/${{ inputs.tf_environment }}/pycon-frontend/conference-code)
3740
echo "CONFERENCE_CODE=$conference_code" >> "$GITHUB_OUTPUT"
3841
39-
sentry_auth_token=$(aws ssm get-parameter --output text --query Parameter.Value --with-decryption --name /pythonit/${{ env.TF_WORKSPACE }}/common/sentry-auth-token)
42+
sentry_auth_token=$(aws ssm get-parameter --output text --query Parameter.Value --with-decryption --name /pythonit/${{ inputs.tf_environment }}/common/sentry-auth-token)
4043
echo "::add-mask::$sentry_auth_token"
4144
echo "SENTRY_AUTH_TOKEN=$sentry_auth_token" >> "$GITHUB_OUTPUT"
4245
- name: Build and push
@@ -47,7 +50,7 @@ jobs:
4750
builder: ${{ steps.buildx.outputs.name }}
4851
provenance: false
4952
push: true
50-
tags: ${{ secrets.AWS_ACCOUNT_ID }}.dkr.ecr.eu-central-1.amazonaws.com/pythonit/${{ fromJSON('["pastaporto", "production"]')[github.ref == 'refs/heads/main'] }}-pycon-frontend:${{ inputs.githash }}
53+
tags: ${{ secrets.AWS_ACCOUNT_ID }}.dkr.ecr.eu-central-1.amazonaws.com/pythonit/${{ inputs.tf_environment }}-pycon-frontend:${{ inputs.githash }}
5154
cache-from: type=local,src=/tmp/.buildx-cache
5255
cache-to: type=local,dest=/tmp/.buildx-cache
5356
platforms: linux/arm64

.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]
11+
runs-on: [self-hosted, arm64-fargate]
1212
steps:
1313
- uses: actions/checkout@v4
1414
with:

.github/workflows/deploy.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -186,6 +186,7 @@ jobs:
186186
uses: ./.github/workflows/build-frontend.yml
187187
with:
188188
githash: ${{ needs.check-frontend-build.outputs.githash }}
189+
tf_environment: ${{ fromJSON('["pastaporto", "production"]')[github.ref == 'refs/heads/main'] }}
189190
secrets: inherit
190191
if: always() && needs.check-frontend-build.outputs.image_exists == 0 && !cancelled() && !failure() && !contains(needs.*.result, 'failure') && !contains(needs.*.result, 'cancelled')
191192

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -138,3 +138,4 @@ backend/__pypackages__/
138138
backend/custom_admin/.astro/
139139
backend/custom_admin/core.*
140140
core.*
141+
**/.archive_files/*.zip

backend/Dockerfile

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -87,3 +87,4 @@ RUN mkdir -p assets && .venv/bin/python manage.py collectstatic --noinput
8787

8888
ENTRYPOINT ["/home/app/.venv/bin/gunicorn"]
8989
CMD [ "pycon.wsgi" ]
90+
#test

backend/README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -63,3 +63,4 @@ And for the admin go to:
6363
http://localhost:8000/admin
6464

6565
You should be able to login with the user we create a few moments ago.
66+
#testchange

infrastructure/tools/.terraform.lock.hcl

Lines changed: 77 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
opentofu 1.8.8

0 commit comments

Comments
 (0)