Skip to content

Commit

Permalink
chore: add deploy key for CI/CD
Browse files Browse the repository at this point in the history
  • Loading branch information
boojamya committed Jan 20, 2025
1 parent 7b3908f commit 10ca8fc
Show file tree
Hide file tree
Showing 2 changed files with 25 additions and 2 deletions.
3 changes: 2 additions & 1 deletion .github/workflows/docker-publish.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -28,10 +28,11 @@ jobs:
password: ${{ secrets.GITHUB_TOKEN }}

- name: Build and push Docker image
uses: strangelove-ventures/[email protected].2
uses: strangelove-ventures/[email protected].3
with:
chain: noble
dockerfile: cosmos
build-target: make install
binaries: |
- /go/bin/nobled
clone-key: ${{ secrets.NOBLE_DOLLAR_DEPLOY }}
24 changes: 23 additions & 1 deletion .github/workflows/e2e-tests.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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://[email protected]/".insteadOf https://github.com/
- name: Generate Matrix
id: set-matrix
run: |
Expand Down Expand Up @@ -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://[email protected]/".insteadOf https://github.com/
- name: Run Tests
run: cd e2e && go test -race -v -timeout 30m -run ^${{ matrix.test }}$ .

0 comments on commit 10ca8fc

Please sign in to comment.