-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update config to use var envs files Set --acl public-read for rapid bucket files Remove deployment rapid in branch deploy/rapid Update helm deployment for staging and production
- Loading branch information
Showing
6 changed files
with
18 additions
and
13 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -4,7 +4,6 @@ on: | |
branches: | ||
- 'main' | ||
- 'staging' | ||
- 'deploy/rapid' | ||
jobs: | ||
rapid: | ||
runs-on: ubuntu-latest | ||
|
@@ -14,7 +13,7 @@ jobs: | |
with: | ||
access_token: ${{ github.token }} | ||
- name: Set environment variables - Staging | ||
if: github.ref == 'refs/heads/staging' || github.ref == 'refs/heads/deploy/rapid' | ||
if: github.ref == 'refs/heads/staging' | ||
uses: allenevans/[email protected] | ||
with: | ||
RAPID_BUCKET: rapid-staging.openhistoricalmap.org | ||
|
@@ -84,7 +83,7 @@ jobs: | |
- name: Push data to s3 and clean cloudfront cache | ||
if: ${{ success() }} | ||
run: | | ||
aws s3 sync dist/ s3://${RAPID_BUCKET}/ | ||
aws s3 sync dist/ s3://${RAPID_BUCKET}/ --acl public-read | ||
aws cloudfront create-invalidation --distribution-id=${CLOUDFRONT_DISTRIBUTION_ID} --paths=/ | ||
env: | ||
AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }} | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -9,4 +9,6 @@ images/.env | |
images/tiler.yml | ||
values.dev.yaml | ||
secrets | ||
tegola | ||
tegola | ||
envs/.env.tiler | ||
envs/.env.web |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -11,5 +11,5 @@ services: | |
ports: | ||
- "9090:9090" | ||
env_file: | ||
- ../envs/.env.tiler.example | ||
- ../envs/.env.tiler | ||
restart: always |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters