Permalink
Browse files

Fix build args

Checksum mismatch on Go 1.11.4
  • Loading branch information...
crazy-max committed Dec 21, 2018
1 parent 50e29d8 commit a8fe1b4bd77c3658acd78af3f3fc4108b7de4bec
Showing with 14 additions and 3 deletions.
  1. +1 −1 .travis.yml
  2. +5 −0 CHANGELOG.md
  3. +8 −2 Dockerfile
@@ -5,7 +5,7 @@ services:

env:
global:
- VERSION=0.1.0
- VERSION=0.1.1
- DOCKER_LOGIN=crazymax
- DOCKER_USERNAME=crazymax
- DOCKER_REPONAME=swarm-cronjob
@@ -1,5 +1,10 @@
# Changelog

## 0.1.1 (2018/12/13)

* Fix build args
* Checksum mismatch on Go 1.11.4

## 0.1.0 (2018/12/13)

* Initial version
@@ -1,12 +1,14 @@
FROM golang:1.11.2 as builder

ARG BUILD_DATE
ARG VCS_REF
ARG VERSION

FROM golang:1.11 as builder
WORKDIR /app
COPY go.mod .
COPY go.sum .
RUN go mod download
RUN go version \
&& go mod download
COPY . ./
RUN cp /usr/local/go/lib/time/zoneinfo.zip ./ \
&& CGO_ENABLED=0 GOOS=linux go build \
@@ -15,6 +17,10 @@ RUN cp /usr/local/go/lib/time/zoneinfo.zip ./ \

FROM scratch

ARG BUILD_DATE
ARG VCS_REF
ARG VERSION

LABEL maintainer="CrazyMax" \
org.label-schema.build-date=$BUILD_DATE \
org.label-schema.name="swarm-cronjob" \

0 comments on commit a8fe1b4

Please sign in to comment.