Skip to content

Commit

Permalink
Update names of Glass Onion secrets
Browse files Browse the repository at this point in the history
  • Loading branch information
Mandrenkov committed Oct 4, 2023
1 parent 07b403f commit eb7a340
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 13 deletions.
15 changes: 8 additions & 7 deletions .github/workflows/build-text.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ on:
branches:
- master
- dev
- sc-44774-glass-onion-demos-bucket

concurrency:
group: build-text-doc-${{ github.ref }}
Expand Down Expand Up @@ -33,12 +34,12 @@ jobs:

secrets:
aws_region: ${{ secrets.AWS_REGION }}
aws_access_key_id: ${{ secrets.STAGING_MAIN_GLASS_ONION_AWS_ACCESS_KEY_ID }}
aws_secret_access_key: ${{ secrets.STAGING_MAIN_GLASS_ONION_AWS_SECRET_ACCESS_KEY }}
aws_text_s3_bucket_id: ${{ secrets.STAGING_MAIN_GLASS_ONION_DEMOS_BUCKET_ID }}
aws_access_key_id: ${{ secrets.STAGING_GLASS_ONION_AWS_ACCESS_KEY_ID }}
aws_secret_access_key: ${{ secrets.STAGING_GLASS_ONION_AWS_SECRET_ACCESS_KEY }}
aws_text_s3_bucket_id: ${{ secrets.STAGING_GLASS_ONION_DEMOS_BUCKET_ID }}

upload-dev:
if: github.ref_name == 'dev'
# if: github.ref_name == 'dev'
needs:
- build
uses: ./.github/workflows/upload-text.yml
Expand All @@ -47,6 +48,6 @@ jobs:

secrets:
aws_region: ${{ secrets.AWS_REGION }}
aws_access_key_id: ${{ secrets.DEV_MAIN_GLASS_ONION_AWS_ACCESS_KEY_ID }}
aws_secret_access_key: ${{ secrets.DEV_MAIN_GLASS_ONION_AWS_SECRET_ACCESS_KEY }}
aws_text_s3_bucket_id: ${{ secrets.DEV_MAIN_GLASS_ONION_DEMOS_BUCKET_ID }}
aws_access_key_id: ${{ secrets.DEV_GLASS_ONION_AWS_ACCESS_KEY_ID }}
aws_secret_access_key: ${{ secrets.DEV_GLASS_ONION_AWS_SECRET_ACCESS_KEY }}
aws_text_s3_bucket_id: ${{ secrets.DEV_GLASS_ONION_DEMOS_BUCKET_ID }}
12 changes: 6 additions & 6 deletions .github/workflows/deploy-demos-to-prod.yml
Original file line number Diff line number Diff line change
Expand Up @@ -49,16 +49,16 @@ jobs:
steps:
- name: Pull staging bucket
env:
AWS_ACCESS_KEY_ID: ${{ secrets.STAGING_MAIN_GLASS_ONION_AWS_ACCESS_KEY_ID }}
AWS_SECRET_ACCESS_KEY: ${{ secrets.STAGING_MAIN_GLASS_ONION_AWS_SECRET_ACCESS_KEY }}
AWS_S3_BUCKET_ID: ${{ secrets.STAGING_MAIN_GLASS_ONION_DEMOS_BUCKET_ID }}
AWS_ACCESS_KEY_ID: ${{ secrets.STAGING_GLASS_ONION_AWS_ACCESS_KEY_ID }}
AWS_SECRET_ACCESS_KEY: ${{ secrets.STAGING_GLASS_ONION_AWS_SECRET_ACCESS_KEY }}
AWS_S3_BUCKET_ID: ${{ secrets.STAGING_GLASS_ONION_DEMOS_BUCKET_ID }}
run: |
aws s3 cp --recursive s3://$AWS_S3_BUCKET_ID ./local-master
- name: Push production bucket
env:
AWS_ACCESS_KEY_ID: ${{ secrets.PROD_MAIN_GLASS_ONION_AWS_ACCESS_KEY_ID }}
AWS_SECRET_ACCESS_KEY: ${{ secrets.PROD_MAIN_GLASS_ONION_AWS_SECRET_ACCESS_KEY }}
AWS_S3_BUCKET_ID: ${{ secrets.PROD_MAIN_GLASS_ONION_DEMOS_BUCKET_ID }}
AWS_ACCESS_KEY_ID: ${{ secrets.PROD_GLASS_ONION_AWS_ACCESS_KEY_ID }}
AWS_SECRET_ACCESS_KEY: ${{ secrets.PROD_GLASS_ONION_AWS_SECRET_ACCESS_KEY }}
AWS_S3_BUCKET_ID: ${{ secrets.PROD_GLASS_ONION_DEMOS_BUCKET_ID }}
run: |
aws s3 sync ./local-master s3://$AWS_S3_BUCKET_ID --delete

0 comments on commit eb7a340

Please sign in to comment.