add args to env vars

This commit is contained in:
techknowlogick 2023-03-04 03:26:02 -05:00
parent 17c9023041
commit 895392b1d5
2 changed files with 4 additions and 1 deletions

View File

@ -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 }}

View File

@ -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 && \