match case of workflow var

This commit is contained in:
Matthew R. Kasun 2022-02-12 12:00:13 -05:00
parent 6cd0858556
commit 966603d3d0

View file

@ -1,12 +1,12 @@
#first stage - builder
FROM golang:1.17-alpine as builder
ARG VERSION
ARG version
RUN apk add build-base
WORKDIR /app
COPY . .
ENV GO111MODULE=auto
RUN GOOS=linux CGO_ENABLED=1 go build -ldflags="-s -X 'main.version=${VERSION}'" -o netmaker main.go
RUN GOOS=linux CGO_ENABLED=1 go build -ldflags="-s -X 'main.version=${version}'" -o netmaker main.go
FROM alpine:3.14.3
# add a c lib