Skip to content

Commit 2116154

Browse files
committed
Try to fix the automated docker builds on master
1 parent c687758 commit 2116154

File tree

2 files changed

+2
-3
lines changed

2 files changed

+2
-3
lines changed

.goreleaser.yml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,10 @@
1-
project_name: variant
1+
project_name: actions
22
builds:
33
- env:
44
- CGO_ENABLED=0
55
ldflags:
66
- -s -w -X github.com/variantdev/go-actions/cmd.VERSION={{.Version}}
77
main: ./cmd
8-
binary: actions
98
changelog:
109
filters:
1110
# commit messages matching the regexp listed here will be removed from

Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ ENV GOARCH=amd64
88
WORKDIR /go/src/github.com/variantdev/go-actions
99
COPY . /go/src/github.com/variantdev/go-actions
1010

11-
RUN if [ -n "${ACTIONS_VERSION}" ]; then git checkout -b tag refs/tags/${ACTIONS_VERSION}; fi \
11+
RUN if [ -n "${ACTIONS_VERSION}" ]; then git checkout -b tag refs/tags/${ACTIONS_VERSION} || git checkout -b branch ${ACTIONS_VERSION}; fi \
1212
&& make build -e GO111MODULE=on
1313

1414
FROM buildpack-deps:scm

0 commit comments

Comments
 (0)