mirror of https://gitea.com/gitea/test-env.git
add args to env vars
This commit is contained in:
parent
17c9023041
commit
895392b1d5
|
@ -21,7 +21,7 @@ jobs:
|
|||
uses: https://github.com/docker/build-push-action@v4
|
||||
with:
|
||||
push: false
|
||||
tags: gitea/test_env:${{ matrix.arch }}
|
||||
tags: gitea/test_env:linux-${{ matrix.arch }}
|
||||
build-args: |
|
||||
GOLANG_VERSION=${{ matrix.go-version }}
|
||||
GIT_VERSION=${{ matrix.git-version }}
|
||||
|
|
|
@ -5,6 +5,9 @@ FROM golang:${GOLANG_VERSION}-bullseye
|
|||
ARG GITEA_ID=1000
|
||||
ARG GITEA_GID=1000
|
||||
|
||||
ENV GIT_VERSION=${GIT_VERSION}
|
||||
ENV GOLANGCI_LINT_VERSION=${GOLANGCI_LINT_VERSION}
|
||||
|
||||
RUN addgroup \
|
||||
--gid $GITEA_GID \
|
||||
gitea && \
|
||||
|
|
Loading…
Reference in New Issue