ci build with access tokens
This commit is contained in:
parent
394c5c3fbf
commit
4b916f6848
@ -36,17 +36,13 @@ jobs:
|
||||
repository: cerc-io/plugeth
|
||||
ref: statediff-wip
|
||||
path: ./plugeth
|
||||
- name: "Install SSH for image builds"
|
||||
working-directory: ./plugeth-statediff
|
||||
# These images need access tokens configured
|
||||
- name: "Build docker image"
|
||||
env:
|
||||
TOKEN: ${{ secrets.CI_ACCESS_TOKEN }} # FIXME
|
||||
run: |
|
||||
set -ex
|
||||
[[ -n "${{ secrets.CI_SSH_PRIVATE_KEY }}" ]]
|
||||
mkdir -p _dev/.ssh
|
||||
echo "${{ secrets.CI_SSH_PRIVATE_KEY }}" > _dev/.ssh/id_rsa
|
||||
chmod 0600 _dev/.ssh/id_rsa
|
||||
ssh-keyscan git.vdb.to >> _dev/.ssh/known_hosts
|
||||
echo '[url "ssh://git@git.vdb.to"] insteadOf = https://git.vdb.to' > _dev/.gitconfig
|
||||
cp -r _dev ../plugeth/
|
||||
docker build ./plugeth-statediff -t "cerc/plugeth-statediff:local" --build-arg GITEA_TOKEN="$TOKEN"
|
||||
docker build ./plugeth -t "cerc/plugeth:local" --build-arg GITEA_TOKEN="$TOKEN"
|
||||
|
||||
- name: "Install stack-orchestrator"
|
||||
uses: actions/checkout@v3
|
||||
|
@ -15,7 +15,7 @@ echo CERC_STATEDIFF_DB_GOOSE_MIN_VER=18 >> $CONFIG_DIR/stack.env
|
||||
|
||||
# Build and deploy a cluster with only what we need from the stack
|
||||
$laconic_so setup-repositories \
|
||||
--exclude github.com/dboreham/foundry,github.com/cerc-io/tx-spammer,github.com/cerc-io/ipld-eth-server,git.vdb.to/cerc-io/plugeth,git.vdb.to/cerc-io/plugeth-statediff \
|
||||
--exclude github.com/dboreham/foundry,github.com/cerc-io/tx-spammer,github.com/cerc-io/ipld-eth-server \
|
||||
--branches-file ./test/stack-refs.txt
|
||||
|
||||
$laconic_so build-containers \
|
||||
|
Loading…
Reference in New Issue
Block a user