diff --git a/.github/workflows/ami-release-nix.yml b/.github/workflows/ami-release-nix.yml index 01eb9889f..76c56cd9c 100644 --- a/.github/workflows/ami-release-nix.yml +++ b/.github/workflows/ami-release-nix.yml @@ -138,6 +138,22 @@ jobs: aws s3 cp /tmp/pg_binaries.tar.gz s3://${{ secrets.PROD_ARTIFACTS_BUCKET }}/upgrades/postgres/supabase-postgres-${{ steps.process_release_version.outputs.version }}/24.04.tar.gz aws s3 cp /tmp/pg_binaries.tar.gz s3://${{ secrets.PROD_ARTIFACTS_BUCKET }}/upgrades/postgres/supabase-postgres-${{ steps.process_release_version.outputs.version }}/upgrade_bundle.tar.gz + - name: GitHub OIDC Auth + uses: aws-actions/configure-aws-credentials@v4.1.0 + with: + aws-region: ap-southeast-1 + role-to-assume: arn:aws:iam::279559813984:role/supabase-github-oidc-role + role-session-name: shared-services-jump + + - name: Assume destination role + uses: aws-actions/configure-aws-credentials@v4.1.0 + with: + aws-region: ap-southeast-1 + role-to-assume: arn:aws:iam::279559813984:role/supabase-nix-catalog-artifacts-role-6387512 + role-skip-session-tagging: true + role-session-name: upload-assets + role-chaining: true + - name: Update nix store path catalog run: | VERSION="${{ steps.process_release_version.outputs.version }}" @@ -149,7 +165,7 @@ jobs: STORE_PATH=$(nix eval --raw ".#psql_${PG_VERSION}/bin.outPath") # Each postgres version gets its own catalog file (no race conditions) - CATALOG_S3="s3://supabase-public-artifacts-bucket/nix-catalog/${GIT_SHA}-psql_${PG_VERSION}.json" + CATALOG_S3="s3://${{ secrets.SHARED_AWS_ARTIFACTS_BUCKET }}/nix-catalog/${GIT_SHA}-psql_${PG_VERSION}.json" # Create catalog JSON for this version jq -n \