From 4b916f684801019a690a1df4834135f522e12099 Mon Sep 17 00:00:00 2001 From: Roy Crihfield Date: Fri, 7 Jul 2023 01:57:46 +0800 Subject: [PATCH] ci build with access tokens --- .gitea/workflows/test.yml | 16 ++++++---------- scripts/integration-setup.sh | 2 +- 2 files changed, 7 insertions(+), 11 deletions(-) diff --git a/.gitea/workflows/test.yml b/.gitea/workflows/test.yml index 88031f5..f1aee8c 100644 --- a/.gitea/workflows/test.yml +++ b/.gitea/workflows/test.yml @@ -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 diff --git a/scripts/integration-setup.sh b/scripts/integration-setup.sh index 8539538..988ba19 100755 --- a/scripts/integration-setup.sh +++ b/scripts/integration-setup.sh @@ -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 \