ci build with access tokens
Some checks failed
Test / Run unit tests (pull_request) Failing after 50s
Test / Run integration tests (pull_request) Failing after 31s

This commit is contained in:
Roy Crihfield 2023-07-07 01:57:46 +08:00
parent 394c5c3fbf
commit 4b916f6848
2 changed files with 7 additions and 11 deletions

View File

@ -36,17 +36,13 @@ jobs:
repository: cerc-io/plugeth repository: cerc-io/plugeth
ref: statediff-wip ref: statediff-wip
path: ./plugeth path: ./plugeth
- name: "Install SSH for image builds" # These images need access tokens configured
working-directory: ./plugeth-statediff - name: "Build docker image"
env:
TOKEN: ${{ secrets.CI_ACCESS_TOKEN }} # FIXME
run: | run: |
set -ex docker build ./plugeth-statediff -t "cerc/plugeth-statediff:local" --build-arg GITEA_TOKEN="$TOKEN"
[[ -n "${{ secrets.CI_SSH_PRIVATE_KEY }}" ]] docker build ./plugeth -t "cerc/plugeth:local" --build-arg GITEA_TOKEN="$TOKEN"
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/
- name: "Install stack-orchestrator" - name: "Install stack-orchestrator"
uses: actions/checkout@v3 uses: actions/checkout@v3

View File

@ -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 # Build and deploy a cluster with only what we need from the stack
$laconic_so setup-repositories \ $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 --branches-file ./test/stack-refs.txt
$laconic_so build-containers \ $laconic_so build-containers \