Use new CI/CD access token for build. (#5)
Co-authored-by: Thomas E Lackey <telackey@bozemanpass.com> Reviewed-on: #5 Co-authored-by: Thomas E Lackey <telackey@noreply.git.vdb.to> Co-committed-by: Thomas E Lackey <telackey@noreply.git.vdb.to>
This commit is contained in:
parent
49c0ce8d5d
commit
a1729e1add
@ -34,12 +34,12 @@ jobs:
|
|||||||
- uses: actions/checkout@v3
|
- uses: actions/checkout@v3
|
||||||
with:
|
with:
|
||||||
repository: cerc-io/plugeth
|
repository: cerc-io/plugeth
|
||||||
ref: statediff-wip
|
ref: telackey/49c
|
||||||
path: ./plugeth
|
path: ./plugeth
|
||||||
# These images need access tokens configured
|
# These images need access tokens configured
|
||||||
- name: "Build docker image"
|
- name: "Build docker image"
|
||||||
env:
|
env:
|
||||||
TOKEN: ${{ secrets.GITHUB_TOKEN }} # FIXME
|
TOKEN: ${{ secrets.CICD_REPO_TOKEN }}
|
||||||
run: |
|
run: |
|
||||||
docker build ./plugeth-statediff -t cerc/plugeth-statediff:local \
|
docker build ./plugeth-statediff -t cerc/plugeth-statediff:local \
|
||||||
--build-arg GIT_VDBTO_TOKEN="$TOKEN"
|
--build-arg GIT_VDBTO_TOKEN="$TOKEN"
|
||||||
|
@ -9,8 +9,7 @@ ARG GIT_VDBTO_TOKEN
|
|||||||
# Get and cache deps
|
# Get and cache deps
|
||||||
WORKDIR /plugeth-statediff/
|
WORKDIR /plugeth-statediff/
|
||||||
COPY go.mod go.sum .
|
COPY go.mod go.sum .
|
||||||
RUN [ -n "$GIT_VDBTO_TOKEN" ] && \
|
RUN if [ -n "$GIT_VDBTO_TOKEN" ]; then git config --global url."https://$GIT_VDBTO_TOKEN:@git.vdb.to/".insteadOf "https://git.vdb.to/"; fi && \
|
||||||
git config --global url."https://$GIT_VDBTO_TOKEN@git.vdb.to/".insteadOf "https://git.vdb.to/" && \
|
|
||||||
go mod download && \
|
go mod download && \
|
||||||
rm -f ~/.gitconfig
|
rm -f ~/.gitconfig
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user