From eb7a34023705809a3230028e1f486295778c2461 Mon Sep 17 00:00:00 2001 From: Mikhail Andrenkov Date: Wed, 4 Oct 2023 10:38:06 -0400 Subject: [PATCH] Update names of Glass Onion secrets --- .github/workflows/build-text.yml | 15 ++++++++------- .github/workflows/deploy-demos-to-prod.yml | 12 ++++++------ 2 files changed, 14 insertions(+), 13 deletions(-) diff --git a/.github/workflows/build-text.yml b/.github/workflows/build-text.yml index 47067ee080..b4b7dfd44c 100644 --- a/.github/workflows/build-text.yml +++ b/.github/workflows/build-text.yml @@ -4,6 +4,7 @@ on: branches: - master - dev + - sc-44774-glass-onion-demos-bucket concurrency: group: build-text-doc-${{ github.ref }} @@ -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 @@ -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 }} diff --git a/.github/workflows/deploy-demos-to-prod.yml b/.github/workflows/deploy-demos-to-prod.yml index c073fad191..776fd7e7d0 100644 --- a/.github/workflows/deploy-demos-to-prod.yml +++ b/.github/workflows/deploy-demos-to-prod.yml @@ -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