Skip to content

Commit

Permalink
Fixed build version
Browse files Browse the repository at this point in the history
  • Loading branch information
WoLfulus committed Oct 31, 2019
1 parent 4d29abc commit 121224f
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 7 deletions.
7 changes: 4 additions & 3 deletions .goreleaser.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,7 @@ builds:
binary: docker-transfer
env:
- CGO_ENABLED=0
ldflags:
- -s -w -X github.com/transfer/transfer/version.Version={{.Env.TRANSFER_VERSION}}
ldflags: -s -w -X github.com/wolfulus/transfer/transfer/version.Version={{.Env.TRANSFER_VERSION}}
goos:
- linux
- windows
Expand All @@ -21,6 +20,8 @@ builds:
- amd64
hooks:
post: ./scripts/compress
release:
disable: true
checksum:
name_template: "checksums.txt"
algorithm: sha256
Expand All @@ -32,7 +33,7 @@ archives:
format: tar.gz
- goos: darwin
format: tar.gz
name_template: "{{ .Binary }}-{{ .Os }}-{{ .Arch }}"
name_template: "{{ .Binary }}-{{.Env.TRANSFER_VERSION}}-{{ .Os }}-{{ .Arch }}"
files:
- licence*
- LICENCE*
Expand Down
8 changes: 4 additions & 4 deletions docker/builder/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
ARG TRANSFER_VERSION=latest

#
# Builder
#
FROM golang:1.13-alpine

ENV GO111MODULE=on
ENV TRANSFER_VERSION=${TRANSFER_VERSION:-latest}

ARG TRANSFER_VERSION=latest
ENV TRANSFER_VERSION=${TRANSFER_VERSION}

# Prerequisites
WORKDIR /transfer
Expand All @@ -19,4 +19,4 @@ RUN go mod download

# Build
COPY . .
RUN ./bin/goreleaser --snapshot --rm-dist
RUN ./bin/goreleaser --rm-dist --skip-publish --skip-sign --skip-validate

0 comments on commit 121224f

Please sign in to comment.