File tree Expand file tree Collapse file tree 3 files changed +31
-6
lines changed Expand file tree Collapse file tree 3 files changed +31
-6
lines changed Original file line number Diff line number Diff line change 66 runs-on : ubuntu-latest
77 steps :
88 - uses : actions/checkout@master
9- - name : Private Go Mod
10- uses : ./.github/actions/make
11- env :
12- SSH_PRIVATE_KEY : ${{ secrets.SSH_PRIVATE_KEY }}
13- with :
14- args : vendor
9+ - name : git setup
10+ run : scripts/ci-gitsetup.sh
1511 - name : Prepare Build Environment
1612 uses : ./.github/actions/make
1713 env :
1814 SSH_PRIVATE_KEY : ${{ secrets.SSH_PRIVATE_KEY }}
15+ GITHUB_REF : ${{ github.ref }}
1916 with :
2017 args : github-prepare
2118 - name : Docker Login
2623 - name : Build & Push
2724 run : scripts/ci-dockerbuildpush.sh
2825 env :
26+ SSH_PRIVATE_KEY : ${{ secrets.SSH_PRIVATE_KEY }}
2927 GITHUB_REF : ${{ github.ref }}
Original file line number Diff line number Diff line change @@ -4,5 +4,21 @@ set -eo pipefail
44
55IMAGE_REF=$( echo " $GITHUB_REF " | rev | cut -d / -f 1 | rev)
66
7+ mkdir -p ~ /.ssh
8+ echo " $SSH_PRIVATE_KEY " > ~ /.ssh/id_rsa
9+ chmod 600 ~ /.ssh/id_rsa
10+ eval " $( ssh-agent -s) " > /dev/null 2>&1
11+ ssh-add ~ /.ssh/id_rsa > /dev/null 2>&1
12+
13+ export GOPATH=${HOME} /go
14+
15+ go mod download
16+
17+ mkdir -p ${GOPATH} /bin
18+
19+ export PATH=" ${GOPATH} /bin:${PATH} "
20+
21+ make vendor
22+
723docker build -t quorumcontrol/tupelo-go-sdk:${IMAGE_REF} .
824docker push quorumcontrol/tupelo-go-sdk:${IMAGE_REF}
Original file line number Diff line number Diff line change 1+ #! /usr/bin/env bash
2+
3+ set -eo pipefail
4+
5+ git config --global url.
" ssh://[email protected] /" .insteadOf
" https://github.com/" 6+
7+ mkdir -p ~ /.ssh
8+ ssh-keyscan -t rsa github.com > github.pub
9+ diff <( ssh-keygen -lf github.pub) <( echo " 2048 SHA256:nThbg6kXUpJWGl7E1IGOCspRomTxdCARLviKw6E5SY8 github.com (RSA)" )
10+ cat github.pub >> ~ /.ssh/known_hosts
11+ rm -f github.pub
You can’t perform that action at this time.
0 commit comments