Commit 3d8c3741 authored by Svetomir Smiljkovic's avatar Svetomir Smiljkovic Committed by GitHub

Allow commit to be retrieved from .git and printed with cmd version (#794)

parent 17bab252
.dockerignore
.DS_Store
.git
.gitignore
.github
.idea
......
FROM golang:1.15 AS build
ARG COMMIT=""
WORKDIR /src
# enable modules caching in separate layer
COPY go.mod go.sum ./
RUN go mod download
COPY . ./
RUN make binary COMMIT=$COMMIT
RUN make binary
FROM debian:10.2-slim
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment