update docker file

This commit is contained in:
Matthew R. Kasun 2022-12-21 17:01:33 -05:00
parent 20ce7a0d0d
commit 070f9fe81b
2 changed files with 2 additions and 4 deletions

View file

@ -47,9 +47,7 @@ jobs:
platforms: linux/amd64, linux/arm64, linux/arm/v7
push: true
tags: ${{ github.repository }}:${{ env.TAG }}, ${{ github.repository }}:latest
build-args: |
version=${{ env.TAG }}
tags=ce
build-args: version=${{ env.TAG }}
docker-ee:
runs-on: ubuntu-latest

View file

@ -7,7 +7,7 @@ COPY . .
ENV GO111MODULE=auto
RUN apk add git
RUN GOOS=linux CGO_ENABLED=1 go build ${tags} -ldflags="-s -X 'main.version=${version}'" .
RUN GOOS=linux CGO_ENABLED=1 go build -ldflags="-s -X 'main.version=${version}'" -tags ${tags} .
# RUN go build -tags=ee . -o netmaker main.go
FROM alpine:3.16.2