diff --git a/.github/workflows/ami-release-nix-single.yml b/.github/workflows/ami-release-nix-single.yml index 0534a98d0..d99939f1d 100644 --- a/.github/workflows/ami-release-nix-single.yml +++ b/.github/workflows/ami-release-nix-single.yml @@ -27,6 +27,13 @@ jobs: uses: supabase/postgres/.github/actions/shared-checkout@HEAD with: ref: ${{ github.event.inputs.branch }} + - name: aws-creds + uses: aws-actions/configure-aws-credentials@v4 + with: + role-to-assume: ${{ secrets.DEV_AWS_ROLE }} + aws-region: "us-east-1" + output-credentials: true + role-duration-seconds: 7200 - name: Get current branch SHA id: get_sha diff --git a/.github/workflows/ami-release-nix.yml b/.github/workflows/ami-release-nix.yml index 449903484..bf2df0c96 100644 --- a/.github/workflows/ami-release-nix.yml +++ b/.github/workflows/ami-release-nix.yml @@ -45,7 +45,13 @@ jobs: steps: - name: Checkout Repo uses: supabase/postgres/.github/actions/shared-checkout@HEAD - + - name: aws-creds + uses: aws-actions/configure-aws-credentials@v4 + with: + role-to-assume: ${{ secrets.DEV_AWS_ROLE }} + aws-region: "us-east-1" + output-credentials: true + role-duration-seconds: 7200 - uses: DeterminateSystems/nix-installer-action@main - name: Run checks if triggered manually diff --git a/.github/workflows/qemu-image-build.yml b/.github/workflows/qemu-image-build.yml index 35b7a583a..8abee1461 100644 --- a/.github/workflows/qemu-image-build.yml +++ b/.github/workflows/qemu-image-build.yml @@ -18,7 +18,7 @@ permissions: jobs: prepare: - runs-on: large-linux-x86 + runs-on: ubuntu-latest outputs: postgres_versions: ${{ steps.set-versions.outputs.postgres_versions }} steps: @@ -38,7 +38,7 @@ jobs: strategy: matrix: postgres_version: ${{ fromJson(needs.prepare.outputs.postgres_versions) }} - runs-on: large-linux-arm + runs-on: arm-native-runner timeout-minutes: 150 permissions: contents: write @@ -54,7 +54,7 @@ jobs: - name: Run checks if triggered manually if: ${{ github.event_name == 'workflow_dispatch' }} run: | - SUFFIX=$(nix run nixpkgs#yq -- ".postgres_release[\"postgres${{ matrix.postgres_version }}\"]" ansible/vars.yml | sed -E 's/[0-9\.]+(.*)$/\1/') + SUFFIX=$(sudo nix run nixpkgs#yq -- ".postgres_release[\"postgres${{ matrix.postgres_version }}\"]" ansible/vars.yml | sed -E 's/[0-9\.]+(.*)$/\1/') if [[ -z $SUFFIX ]] ; then echo "Version must include non-numeric characters if built manually." exit 1