share arg

This commit is contained in:
Kwitsch 2022-09-14 13:59:18 +02:00
parent c268e42738
commit 0c653c91fc
2 changed files with 8 additions and 3 deletions

View File

@ -1,6 +1,10 @@
ARG VERSION
ARG BUILD_TIME
# prepare build environment
FROM golang:1-alpine AS build-env
ARG VERSION
ARG BUILD_TIME
# add blocky user
RUN adduser -S -D -H -h /app -s /sbin/nologin blocky
RUN tail -n 1 /etc/passwd > /tmp/blocky_passwd
@ -23,6 +27,8 @@ RUN apk add --no-cache \
# build blocky
FROM build-env AS build
ARG VERSION
ARG BUILD_TIME
# set working directory
WORKDIR /src
@ -36,8 +42,6 @@ ADD . .
RUN go generate ./...
# setup environment
ARG VERSION
ARG BUILD_TIME
ENV GO111MODULE=on
ENV CGO_ENABLED=0

View File

@ -8,6 +8,7 @@ package tools
import (
_ "github.com/abice/go-enum"
_ "github.com/golangci/golangci-lint/cmd/golangci-lint"
_ "github.com/inigolabs/revgen@latest"
_ "github.com/onsi/ginkgo/v2/ginkgo"
_ "github.com/swaggo/swag/cmd/swag"
)