Skip to content

Commit

Permalink
Finalizing docker updates
Browse files Browse the repository at this point in the history
  • Loading branch information
jimmysawczuk committed Jun 10, 2019
1 parent aa26bd3 commit aa15780
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 5 deletions.
5 changes: 2 additions & 3 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,10 +1,9 @@
FROM golang:1.12 AS builder
WORKDIR /build
COPY . /go/src/github.com/jimmysawczuk/scm-status
RUN CGO_ENABLED=0 GOOS=linux GOARCH=amd64 go build -o app github.com/jimmysawczuk/scm-status
RUN CGO_ENABLED=0 GOOS=linux GOARCH=amd64 go build -o scm-status github.com/jimmysawczuk/scm-status

FROM alpine
RUN apk add --no-cache git tzdata
COPY --from=builder /build/app /usr/bin/scm-status
COPY --from=builder /build/scm-status /usr/bin/scm-status
WORKDIR /home
ENTRYPOINT ["scm-status"]
2 changes: 1 addition & 1 deletion cmd.go
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ import (
"path"
)

var version = "2.1.0"
var version = "2.1.1"

var out = flag.String("out", "", "File in which to (over)write the revision info into (defaults to stdout)")
var executable = flag.String("executable", "", "Path to this executable (used for hooks; default: $GOPATH/bin/scm-status)")
Expand Down
2 changes: 1 addition & 1 deletion deploy.bash
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#!/bin/bash

APPNAME="scm-status"
VERSION="2.1.0"
VERSION="2.1.1"

# Setup
mkdir -p deploy
Expand Down

0 comments on commit aa15780

Please sign in to comment.