Skip to content

Commit

Permalink
Admin/Subsection: update workflows
Browse files Browse the repository at this point in the history
  • Loading branch information
JohannaPeanut committed Oct 31, 2023
1 parent df3de24 commit ad41515
Show file tree
Hide file tree
Showing 6 changed files with 13 additions and 4 deletions.
3 changes: 3 additions & 0 deletions .env.local.example
Original file line number Diff line number Diff line change
Expand Up @@ -19,3 +19,6 @@ S3_UPLOAD_BUCKET=trassenscout
S3_UPLOAD_KEY=AAAAAAAAAAAAAAAAAAAA
S3_UPLOAD_REGION=eu-central-1
S3_UPLOAD_SECRET=AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA

# Get from https://felt.com/ => Settings
FELT_TOKEN=felt_pat_AAAAAAAAAAAAAAAAAAAAAA
3 changes: 2 additions & 1 deletion .github/workflows/deploy-app-production.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,12 +15,13 @@ jobs:
secrets:
AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }}
AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
DATABASE_URL: ${{ secrets.DATABASE_URL_PRODUCTION }}
DATABASE_URL: ${{ secrets.DATABASE_URL_PRODUCTION }}
SESSION_SECRET_KEY: ${{ secrets.SESSION_SECRET_KEY_PRODUCTION }}
NGINX_HTPASSWD: ${{ secrets.NGINX_HTPASSWD }}
MAILJET_APIKEY_PUBLIC: ${{ secrets.MAILJET_APIKEY_PUBLIC }}
MAILJET_APIKEY_PRIVATE: ${{ secrets.MAILJET_APIKEY_PRIVATE }}
S3_UPLOAD_KEY: ${{ secrets.S3_UPLOAD_KEY }}
S3_UPLOAD_SECRET: ${{ secrets.S3_UPLOAD_SECRET }}
FELT_TOKEN: ${{ secrets.FELT_TOKEN }}
ASSETS_BUCKET_HOST: ${{ secrets.ASSETS_BUCKET_HOST }}
ASSETS_BUCKET_PATH: ${{ secrets.ASSETS_BUCKET_PATH_PRODUCTION }}
3 changes: 2 additions & 1 deletion .github/workflows/deploy-app-staging.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,12 +15,13 @@ jobs:
secrets:
AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }}
AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
DATABASE_URL: ${{ secrets.DATABASE_URL_STAGING }}
DATABASE_URL: ${{ secrets.DATABASE_URL_STAGING }}
SESSION_SECRET_KEY: ${{ secrets.SESSION_SECRET_KEY_STAGING }}
NGINX_HTPASSWD: ${{ secrets.NGINX_HTPASSWD }}
MAILJET_APIKEY_PUBLIC: ${{ secrets.MAILJET_APIKEY_PUBLIC }}
MAILJET_APIKEY_PRIVATE: ${{ secrets.MAILJET_APIKEY_PRIVATE }}
S3_UPLOAD_KEY: ${{ secrets.S3_UPLOAD_KEY }}
FELT_TOKEN: ${{ secrets.FELT_TOKEN }}
S3_UPLOAD_SECRET: ${{ secrets.S3_UPLOAD_SECRET }}
ASSETS_BUCKET_HOST: ${{ secrets.ASSETS_BUCKET_HOST }}
ASSETS_BUCKET_PATH: ${{ secrets.ASSETS_BUCKET_PATH_STAGING }}
3 changes: 2 additions & 1 deletion .github/workflows/deploy-app-tinkering.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,12 +15,13 @@ jobs:
secrets:
AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }}
AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
DATABASE_URL: ${{ secrets.DATABASE_URL_TINKERING }}
DATABASE_URL: ${{ secrets.DATABASE_URL_TINKERING }}
SESSION_SECRET_KEY: ${{ secrets.SESSION_SECRET_KEY_TINKERING }}
NGINX_HTPASSWD: ${{ secrets.NGINX_HTPASSWD }}
MAILJET_APIKEY_PUBLIC: ${{ secrets.MAILJET_APIKEY_PUBLIC }}
MAILJET_APIKEY_PRIVATE: ${{ secrets.MAILJET_APIKEY_PRIVATE }}
S3_UPLOAD_KEY: ${{ secrets.S3_UPLOAD_KEY }}
S3_UPLOAD_SECRET: ${{ secrets.S3_UPLOAD_SECRET }}
FELT_TOKEN: ${{ secrets.FELT_TOKEN }}
ASSETS_BUCKET_HOST: ${{ secrets.ASSETS_BUCKET_HOST }}
ASSETS_BUCKET_PATH: ${{ secrets.ASSETS_BUCKET_PATH_TINKERING }}
4 changes: 3 additions & 1 deletion .github/workflows/deploy-app.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,8 @@ on:
required: true
S3_UPLOAD_SECRET:
required: true
FELT_TOKEN:
required: true
ASSETS_BUCKET_HOST:
required: true
ASSETS_BUCKET_PATH:
Expand All @@ -45,7 +47,6 @@ jobs:
build-push-deploy-docker-images:
runs-on: ubuntu-latest
steps:

- uses: actions/checkout@v3

- name: Upgrade AWS CLI version and setup lightsailctl
Expand Down Expand Up @@ -115,6 +116,7 @@ jobs:
S3_UPLOAD_BUCKET: ${{ inputs.S3_UPLOAD_BUCKET }}
S3_UPLOAD_REGION: ${{ inputs.S3_UPLOAD_REGION }}
S3_UPLOAD_ROOTFOLDER: ${{ inputs.S3_UPLOAD_ROOTFOLDER }}
FELT_TOKEN: ${{ secrets.FELT_TOKEN }}
ASSETS_BUCKET_HOST: ${{ secrets.ASSETS_BUCKET_HOST }}
ASSETS_BUCKET_PATH: ${{ secrets.ASSETS_BUCKET_PATH }}

Expand Down
1 change: 1 addition & 0 deletions .github/workflows/deployment-config.yml.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ containers:
S3_UPLOAD_BUCKET: ${S3_UPLOAD_BUCKET}
S3_UPLOAD_REGION: ${S3_UPLOAD_REGION}
S3_UPLOAD_ROOTFOLDER: ${S3_UPLOAD_ROOTFOLDER}
FELT_TOKEN: ${{ secrets.FELT_TOKEN }}
image: public.ecr.aws/n0p8j4k5/trassenscout/app:${GITHUB_SHA}
ports:
"3000": HTTP
Expand Down

0 comments on commit ad41515

Please sign in to comment.