Skip to content

Commit

Permalink
minor changes to make it work with new goreleaser version
Browse files Browse the repository at this point in the history
  • Loading branch information
simskij committed Apr 7, 2019
1 parent 59eb978 commit 0cd6e69
Show file tree
Hide file tree
Showing 5 changed files with 10 additions and 36 deletions.
7 changes: 0 additions & 7 deletions dockerfile/amd64/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,18 +1,11 @@
#
# Alpine image to get some needed data
#
FROM alpine:latest as alpine
RUN apk add --no-cache \
ca-certificates \
tzdata

#
# Image
#
FROM scratch
LABEL "com.centurylinklabs.watchtower"="true"

# copy files from other containers
COPY --from=alpine /etc/ssl/certs/ca-certificates.crt /etc/ssl/certs/ca-certificates.crt
COPY --from=alpine /usr/share/zoneinfo /usr/share/zoneinfo

Expand Down
7 changes: 0 additions & 7 deletions dockerfile/arm64v8/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,18 +1,11 @@
#
# Alpine image to get some needed data
#
FROM alpine:latest as alpine
RUN apk add --no-cache \
ca-certificates \
tzdata

#
# Image
#
FROM scratch
LABEL "com.centurylinklabs.watchtower"="true"

# copy files from other containers
COPY --from=alpine /etc/ssl/certs/ca-certificates.crt /etc/ssl/certs/ca-certificates.crt
COPY --from=alpine /usr/share/zoneinfo /usr/share/zoneinfo

Expand Down
7 changes: 0 additions & 7 deletions dockerfile/armhf/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,18 +1,11 @@
#
# Alpine image to get some needed data
#
FROM alpine:latest as alpine
RUN apk add --no-cache \
ca-certificates \
tzdata

#
# Image
#
FROM scratch
LABEL "com.centurylinklabs.watchtower"="true"

# copy files from other containers
COPY --from=alpine /etc/ssl/certs/ca-certificates.crt /etc/ssl/certs/ca-certificates.crt
COPY --from=alpine /usr/share/zoneinfo /usr/share/zoneinfo

Expand Down
7 changes: 0 additions & 7 deletions dockerfile/386/Dockerfile → dockerfile/i386/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,18 +1,11 @@
#
# Alpine image to get some needed data
#
FROM alpine:latest as alpine
RUN apk add --no-cache \
ca-certificates \
tzdata

#
# Image
#
FROM scratch
LABEL "com.centurylinklabs.watchtower"="true"

# copy files from other containers
COPY --from=alpine /etc/ssl/certs/ca-certificates.crt /etc/ssl/certs/ca-certificates.crt
COPY --from=alpine /usr/share/zoneinfo /usr/share/zoneinfo

Expand Down
18 changes: 10 additions & 8 deletions goreleaser.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ build:
- windows
goarch:
- amd64
- 386
- i386
- arm
- arm64
archive:
Expand All @@ -16,7 +16,7 @@ archive:
arm: armhf
arm64: arm64v8
amd64: amd64
386: 386
386: i386
darwin: macOS
linux: linux
format_overrides:
Expand All @@ -38,13 +38,15 @@ dockers:
- watchtower
-
goos: linux
goarch: 386
goarch: i386
goarm: ''
binary: watchtower
image: v2tec/watchtower
dockerfile: dockerfile/386/Dockerfile
tag_templates:
- '386-{{ .Version }}'
dockerfile: dockerfile/i386/Dockerfile
build_flag_templates:
- "--label=com.centurylinklabs.watchtower=true"
image_templates:
- containrrr/watchtower:i386-{{ .Version }}
binaries:
- watchtower
-
goos: linux
goarch: arm
Expand Down

0 comments on commit 0cd6e69

Please sign in to comment.