Skip to content

Commit

Permalink
preparing token for go releaser and force version on docker
Browse files Browse the repository at this point in the history
  • Loading branch information
aperezg committed Apr 24, 2021
1 parent 2bfb685 commit 85195e0
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/release.yml
Expand Up @@ -24,4 +24,4 @@ jobs:
version: latest
args: release --rm-dist
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
GITHUB_TOKEN: ${{ secrets.GH_RELEASER }}
4 changes: 2 additions & 2 deletions Dockerfile
@@ -1,12 +1,12 @@
FROM golang:alpine AS build
FROM golang:1.16-alpine AS build

LABEL MAINTAINER = 'Friends of Go (it@friendsofgo.tech)'

RUN apk add --update git
RUN apk add ca-certificates
WORKDIR /go/src/github.com/friendsofgo/killgrave
COPY . .
RUN export GO111MODULE=on && go mod tidy && TAG=$(git describe --tags --abbrev=0) \
RUN go mod tidy && TAG=$(git describe --tags --abbrev=0) \
&& LDFLAGS=$(echo "-s -w -X main.version="$TAG) \
&& CGO_ENABLED=0 GOOS=linux GOARCH=amd64 go build -a -installsuffix cgo -o /go/bin/killgrave -ldflags "$LDFLAGS" cmd/killgrave/main.go

Expand Down

0 comments on commit 85195e0

Please sign in to comment.