From 2f4446781317bc35e4342bac15baa1f04863d167 Mon Sep 17 00:00:00 2001 From: Justin Kaseman Date: Thu, 12 Dec 2024 14:04:02 -0800 Subject: [PATCH] [WIP] Checkout Capabilities --- .../workflows/build-publish-develop-pr.yml | 19 ++++++++++++++++++- tools/bin/goreleaser_utils | 3 +++ tools/goreleaser-config/gen_config.go | 2 +- 3 files changed, 22 insertions(+), 2 deletions(-) diff --git a/.github/workflows/build-publish-develop-pr.yml b/.github/workflows/build-publish-develop-pr.yml index 92d9e0445a6..e7d3afa26ae 100644 --- a/.github/workflows/build-publish-develop-pr.yml +++ b/.github/workflows/build-publish-develop-pr.yml @@ -35,9 +35,25 @@ jobs: image-tag: ${{ steps.get-image-tag.outputs.image-tag }} release-type: ${{ steps.get-image-tag.outputs.release-type }} steps: - - name: Checkout repository + - name: Setup Github Token + id: token + uses: smartcontractkit/.github/actions/setup-github-token@ef78fa97bf3c77de6563db1175422703e9e6674f # setup-github-token@0.2.1 + with: + aws-role-arn: ${{ secrets.AWS_OIDC_GLOBAL_READ_ONLY_TOKEN_ISSUER_ROLE_ARN }} + aws-lambda-url: ${{ secrets.AWS_INFRA_RELENG_TOKEN_ISSUER_LAMBDA_URL }} + aws-region: ${{ secrets.AWS_REGION }} + set-git-config: "true" + + - name: Checkout capabilities repository + uses: actions/checkout@v4.2.1 + with: // Pass in token because it's a private repo + repository: smartcontractkit/capabilities + token: ${{ steps.token.outputs.access-token }} + + - name: Checkout chainlink repository uses: actions/checkout@v4.2.1 with: + repository: smartcontractkit/chainlink ref: ${{ env.CHECKOUT_REF }} - name: Get image tag @@ -124,6 +140,7 @@ jobs: - name: Checkout repository uses: actions/checkout@v4.2.1 with: + repository: smartcontractkit/chainlink ref: ${{ env.CHECKOUT_REF }} - name: Configure aws credentials diff --git a/tools/bin/goreleaser_utils b/tools/bin/goreleaser_utils index 0bf745d5a58..65db3168537 100755 --- a/tools/bin/goreleaser_utils +++ b/tools/bin/goreleaser_utils @@ -6,6 +6,9 @@ set -xe before_hook() { local -r lib_path=tmp + echo $(ls) + echo $(ls ..) + mkdir -p "$lib_path/libs" # Copy over all platform versions of the wasmvm library cp -f "$(go list -json -m github.com/CosmWasm/wasmvm | jq -r '.Dir')"/internal/api/libwasmvm.* "$lib_path/libs" diff --git a/tools/goreleaser-config/gen_config.go b/tools/goreleaser-config/gen_config.go index de0a4ef0c3c..dd997a35938 100644 --- a/tools/goreleaser-config/gen_config.go +++ b/tools/goreleaser-config/gen_config.go @@ -25,7 +25,7 @@ func Generate(environment string) config.Project { Cmd: "go mod tidy", }, { - Cmd: "./tools/bin/goreleaser_utils before_hook", + Cmd: "./tools/bin/goreleaser_utils before_hook", // modify this to include capabilities }, }, },