minor changes to make it work with new goreleaser version

pull/241/head^2
Simon Aronsson 6 years ago
parent 59eb978b5f
commit 0cd6e6954a

@ -1,18 +1,11 @@
#
# Alpine image to get some needed data
#
FROM alpine:latest as alpine FROM alpine:latest as alpine
RUN apk add --no-cache \ RUN apk add --no-cache \
ca-certificates \ ca-certificates \
tzdata tzdata
#
# Image
#
FROM scratch FROM scratch
LABEL "com.centurylinklabs.watchtower"="true" 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 /etc/ssl/certs/ca-certificates.crt /etc/ssl/certs/ca-certificates.crt
COPY --from=alpine /usr/share/zoneinfo /usr/share/zoneinfo COPY --from=alpine /usr/share/zoneinfo /usr/share/zoneinfo

@ -1,18 +1,11 @@
#
# Alpine image to get some needed data
#
FROM alpine:latest as alpine FROM alpine:latest as alpine
RUN apk add --no-cache \ RUN apk add --no-cache \
ca-certificates \ ca-certificates \
tzdata tzdata
#
# Image
#
FROM scratch FROM scratch
LABEL "com.centurylinklabs.watchtower"="true" 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 /etc/ssl/certs/ca-certificates.crt /etc/ssl/certs/ca-certificates.crt
COPY --from=alpine /usr/share/zoneinfo /usr/share/zoneinfo COPY --from=alpine /usr/share/zoneinfo /usr/share/zoneinfo

@ -1,18 +1,11 @@
#
# Alpine image to get some needed data
#
FROM alpine:latest as alpine FROM alpine:latest as alpine
RUN apk add --no-cache \ RUN apk add --no-cache \
ca-certificates \ ca-certificates \
tzdata tzdata
#
# Image
#
FROM scratch FROM scratch
LABEL "com.centurylinklabs.watchtower"="true" 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 /etc/ssl/certs/ca-certificates.crt /etc/ssl/certs/ca-certificates.crt
COPY --from=alpine /usr/share/zoneinfo /usr/share/zoneinfo COPY --from=alpine /usr/share/zoneinfo /usr/share/zoneinfo

@ -1,18 +1,11 @@
#
# Alpine image to get some needed data
#
FROM alpine:latest as alpine FROM alpine:latest as alpine
RUN apk add --no-cache \ RUN apk add --no-cache \
ca-certificates \ ca-certificates \
tzdata tzdata
#
# Image
#
FROM scratch FROM scratch
LABEL "com.centurylinklabs.watchtower"="true" 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 /etc/ssl/certs/ca-certificates.crt /etc/ssl/certs/ca-certificates.crt
COPY --from=alpine /usr/share/zoneinfo /usr/share/zoneinfo COPY --from=alpine /usr/share/zoneinfo /usr/share/zoneinfo

@ -6,7 +6,7 @@ build:
- windows - windows
goarch: goarch:
- amd64 - amd64
- 386 - i386
- arm - arm
- arm64 - arm64
archive: archive:
@ -16,7 +16,7 @@ archive:
arm: armhf arm: armhf
arm64: arm64v8 arm64: arm64v8
amd64: amd64 amd64: amd64
386: 386 386: i386
darwin: macOS darwin: macOS
linux: linux linux: linux
format_overrides: format_overrides:
@ -38,13 +38,15 @@ dockers:
- watchtower - watchtower
- -
goos: linux goos: linux
goarch: 386 goarch: i386
goarm: '' goarm: ''
binary: watchtower dockerfile: dockerfile/i386/Dockerfile
image: v2tec/watchtower build_flag_templates:
dockerfile: dockerfile/386/Dockerfile - "--label=com.centurylinklabs.watchtower=true"
tag_templates: image_templates:
- '386-{{ .Version }}' - containrrr/watchtower:i386-{{ .Version }}
binaries:
- watchtower
- -
goos: linux goos: linux
goarch: arm goarch: arm

Loading…
Cancel
Save