use access token for gitea
This commit is contained in:
parent
feb6ccc72b
commit
35cf277d70
10
Dockerfile
10
Dockerfile
@ -8,10 +8,12 @@ FROM golang:1.20-alpine as builder
|
|||||||
|
|
||||||
RUN apk add --no-cache gcc musl-dev binutils-gold linux-headers git
|
RUN apk add --no-cache gcc musl-dev binutils-gold linux-headers git
|
||||||
|
|
||||||
# FIXME - setup for dev deps
|
# Configure creds for gitea
|
||||||
RUN apk add --no-cache openssh
|
ARG GITEA_TOKEN
|
||||||
COPY _dev/.ssh /root/.ssh
|
RUN echo $GITEA_TOKEN > ~/.token
|
||||||
COPY _dev/.gitconfig /root/
|
RUN git config --global credential.username _ # ignored, but prevents prompt
|
||||||
|
RUN git config --global credential.helper \
|
||||||
|
'!f() { test "$1" = get && echo "password=$(cat $HOME/.token)"; }; f'
|
||||||
|
|
||||||
# Get dependencies - will also be cached if we won't change go.mod/go.sum
|
# Get dependencies - will also be cached if we won't change go.mod/go.sum
|
||||||
COPY go.mod /go-ethereum/
|
COPY go.mod /go-ethereum/
|
||||||
|
Loading…
Reference in New Issue
Block a user