Use new CI/CD access token for build. #5

Merged
roysc merged 10 commits from telackey/49c into wip 2023-07-10 22:40:14 +00:00
2 changed files with 3 additions and 4 deletions

View File

@ -34,12 +34,12 @@ jobs:
- uses: actions/checkout@v3
with:
repository: cerc-io/plugeth
ref: statediff-wip
ref: telackey/49c
path: ./plugeth
# These images need access tokens configured
- name: "Build docker image"
env:
TOKEN: ${{ secrets.GITHUB_TOKEN }} # FIXME
TOKEN: ${{ secrets.CICD_REPO_TOKEN }}
run: |
docker build ./plugeth-statediff -t cerc/plugeth-statediff:local \
--build-arg GIT_VDBTO_TOKEN="$TOKEN"

View File

@ -9,8 +9,7 @@ ARG GIT_VDBTO_TOKEN
# Get and cache deps
WORKDIR /plugeth-statediff/
COPY go.mod go.sum .
RUN [ -n "$GIT_VDBTO_TOKEN" ] && \
git config --global url."https://$GIT_VDBTO_TOKEN@git.vdb.to/".insteadOf "https://git.vdb.to/" && \
RUN if [ -n "$GIT_VDBTO_TOKEN" ]; then git config --global url."https://$GIT_VDBTO_TOKEN:@git.vdb.to/".insteadOf "https://git.vdb.to/"; fi && \
go mod download && \
rm -f ~/.gitconfig