0
0
mirror of https://github.com/thegeeklab/wp-s3-action.git synced 2024-11-24 03:50:40 +00:00

Simple additions like base image and microbadger webhook (#30)

* Use specific plugin versions, pull latest versions and enable a microbadger webhook

* Use the new plugins/base:multiarch image
This commit is contained in:
Thomas Boerger 2017-09-02 19:07:20 +02:00 committed by Bo-Yi Wu
parent ff0adec0f2
commit 471f743e20
5 changed files with 24 additions and 38 deletions

View File

@ -5,12 +5,14 @@ workspace:
pipeline:
test:
image: golang:1.9
pull: true
commands:
- go vet
- go test -cover -coverprofile=coverage.out
build_linux_amd64:
image: golang:1.9
pull: true
group: build
environment:
- GOOS=linux
@ -21,6 +23,7 @@ pipeline:
build_linux_arm64:
image: golang:1.9
pull: true
group: build
environment:
- GOOS=linux
@ -31,6 +34,7 @@ pipeline:
build_linux_arm:
image: golang:1.9
pull: true
group: build
environment:
- GOOS=linux
@ -42,6 +46,7 @@ pipeline:
# build_windows_amd64:
# image: golang:1.9-nanoserver
# pull: true
# group: build
# environment:
# - GOOS=windows
@ -51,7 +56,8 @@ pipeline:
# - go build -v -ldflags "-X main.build=${DRONE_BUILD_NUMBER}" -a -o release/windows/amd64/drone-s3-sync
publish_linux_amd64:
image: plugins/docker
image: plugins/docker:17.05
pull: true
repo: plugins/s3-sync
tags: [ latest, 1.1.0, 1.1, 1 ]
secrets: [ docker_username, docker_password ]
@ -60,7 +66,8 @@ pipeline:
event: push
publish_linux_arm64:
image: plugins/docker
image: plugins/docker:17.05
pull: true
repo: plugins/s3-sync
tags: [ linux-arm64 ]
secrets: [ docker_username, docker_password ]
@ -70,7 +77,8 @@ pipeline:
event: push
publish_linux_arm:
image: plugins/docker
image: plugins/docker:17.05
pull: true
repo: plugins/s3-sync
tags: [ linux-arm ]
secrets: [ docker_username, docker_password ]
@ -80,7 +88,8 @@ pipeline:
event: push
# publish_windows_amd64:
# image: plugins/docker
# image: plugins/docker:17.05
# pull: true
# repo: plugins/s3-sync
# tags: [ windows-amd64 ]
# secrets: [ docker_username, docker_password ]
@ -89,8 +98,11 @@ pipeline:
# branch: master
# event: push
# microbadger:
# image: plugins/webhook
# secrets: [ webhook_url ]
# when:
# status: [ success ]
microbadger:
image: plugins/webhook:1
pull: true
secrets: [ webhook_url ]
when:
branch: master
event: push
status: [ success ]

View File

@ -1,14 +1,6 @@
FROM alpine:3.6 as alpine
RUN apk add -U --no-cache ca-certificates mailcap
FROM scratch
FROM plugins/base:multiarch
MAINTAINER Drone.IO Community <drone-dev@googlegroups.com>
ENV GODEBUG=netdns=go
COPY --from=alpine /etc/ssl/certs/ca-certificates.crt /etc/ssl/certs/
COPY --from=alpine /etc/mime.types /etc/
LABEL org.label-schema.version=latest
LABEL org.label-schema.vcs-url="https://github.com/drone-plugins/drone-s3-sync.git"
LABEL org.label-schema.name="Drone S3 Sync"

View File

@ -1,14 +1,6 @@
FROM alpine:3.6 as alpine
RUN apk add -U --no-cache ca-certificates mailcap
FROM scratch
FROM plugins/base:multiarch
MAINTAINER Drone.IO Community <drone-dev@googlegroups.com>
ENV GODEBUG=netdns=go
COPY --from=alpine /etc/ssl/certs/ca-certificates.crt /etc/ssl/certs/
COPY --from=alpine /etc/mime.types /etc/
LABEL org.label-schema.version=latest
LABEL org.label-schema.vcs-url="https://github.com/drone-plugins/drone-s3-sync.git"
LABEL org.label-schema.name="Drone S3 Sync"

View File

@ -1,14 +1,6 @@
FROM alpine:3.6 as alpine
RUN apk add -U --no-cache ca-certificates mailcap
FROM scratch
FROM plugins/base:multiarch
MAINTAINER Drone.IO Community <drone-dev@googlegroups.com>
ENV GODEBUG=netdns=go
COPY --from=alpine /etc/ssl/certs/ca-certificates.crt /etc/ssl/certs/
COPY --from=alpine /etc/mime.types /etc/
LABEL org.label-schema.version=latest
LABEL org.label-schema.vcs-url="https://github.com/drone-plugins/drone-s3-sync.git"
LABEL org.label-schema.name="Drone S3 Sync"

View File

@ -1,8 +1,6 @@
FROM microsoft/nanoserver:latest
MAINTAINER Drone.IO Community <drone-dev@googlegroups.com>
ENV GODEBUG=netdns=go
LABEL org.label-schema.version=latest
LABEL org.label-schema.vcs-url="https://github.com/drone-plugins/drone-s3-sync.git"
LABEL org.label-schema.name="Drone S3 Sync"