diff --git a/.github/workflows/docker-publish.yaml b/.github/workflows/docker-publish.yaml index 51898326..ea36bf2a 100644 --- a/.github/workflows/docker-publish.yaml +++ b/.github/workflows/docker-publish.yaml @@ -28,10 +28,11 @@ jobs: password: ${{ secrets.GITHUB_TOKEN }} - name: Build and push Docker image - uses: strangelove-ventures/heighliner-build-action@v1.0.2 + uses: strangelove-ventures/heighliner-build-action@v1.0.3 with: chain: noble dockerfile: cosmos build-target: make install binaries: | - /go/bin/nobled + clone-key: ${{ secrets.NOBLE_DOLLAR_DEPLOY }} diff --git a/.github/workflows/e2e-tests.yaml b/.github/workflows/e2e-tests.yaml index 86b0677c..d58d51d5 100644 --- a/.github/workflows/e2e-tests.yaml +++ b/.github/workflows/e2e-tests.yaml @@ -21,7 +21,7 @@ jobs: tag: local # emulate local environment for consistency in interchaintest cases tar-export-path: ${{ env.TAR_PATH }} # export a tarball that can be uploaded as an artifact for the e2e jobs platform: linux/amd64 # test runner architecture only - git-ref: ${{ github.head_ref }} # source code ref + clone-key: ${{ secrets.NOBLE_DOLLAR_DEPLOY}} # Heighliner chains.yaml config chain: noble @@ -49,6 +49,17 @@ jobs: with: go-version: '1.22' + - name: Add and Configure SSH Deploy Key + env: + SSH_AUTH_SOCK: /tmp/ssh_agent.sock + run: | + mkdir -p ~/.ssh + ssh-keyscan github.com >> ~/.ssh/known_hosts + ssh-agent -a $SSH_AUTH_SOCK > /dev/null + echo "${{ secrets.NOBLE_DOLLAR_DEPLOY }}" | base64 -d | ssh-add - + echo "SSH_AUTH_SOCK=$SSH_AUTH_SOCK" >> $GITHUB_ENV + git config --global url."ssh://git@github.com/".insteadOf https://github.com/ + - name: Generate Matrix id: set-matrix run: | @@ -84,5 +95,16 @@ jobs: - name: Load Docker Image run: docker image load -i ${{ env.TAR_PATH }} + - name: Add and Configure SSH Deploy Key + env: + SSH_AUTH_SOCK: /tmp/ssh_agent.sock + run: | + mkdir -p ~/.ssh + ssh-keyscan github.com >> ~/.ssh/known_hosts + ssh-agent -a $SSH_AUTH_SOCK > /dev/null + echo "${{ secrets.NOBLE_DOLLAR_DEPLOY }}" | base64 -d | ssh-add - + echo "SSH_AUTH_SOCK=$SSH_AUTH_SOCK" >> $GITHUB_ENV + git config --global url."ssh://git@github.com/".insteadOf https://github.com/ + - name: Run Tests run: cd e2e && go test -race -v -timeout 30m -run ^${{ matrix.test }}$ .