Skip to content

Commit

Permalink
Update container.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
m-ahlstrom committed Mar 16, 2024
1 parent 01180f1 commit 340dbba
Showing 1 changed file with 13 additions and 1 deletion.
14 changes: 13 additions & 1 deletion .github/workflows/container.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,15 @@ on:
push:
branches:
- main
paths:
- "container/**"

workflow_dispatch:
inputs:
logLevel:
description: "Log level"
required: true
default: "warning"

defaults:
run:
working-directory: container
Expand All @@ -26,3 +32,9 @@ jobs:
AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }}
AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
AWS_DEFAULT_REGION: eu-central-1

- run: aws cloudfront create-invalidation --distribution-id ${{ secrets.AWS_DISTRIBUTION_ID }} --paths "/container/latest/index.html"
env:
AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }}
AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
AWS_DEFAULT_REGION: eu-central-1

0 comments on commit 340dbba

Please sign in to comment.