mirror of
https://github.com/thegeeklab/wp-s3-action.git
synced 2024-11-24 14:00: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:
parent
ff0adec0f2
commit
471f743e20
30
.drone.yml
30
.drone.yml
@ -5,12 +5,14 @@ workspace:
|
|||||||
pipeline:
|
pipeline:
|
||||||
test:
|
test:
|
||||||
image: golang:1.9
|
image: golang:1.9
|
||||||
|
pull: true
|
||||||
commands:
|
commands:
|
||||||
- go vet
|
- go vet
|
||||||
- go test -cover -coverprofile=coverage.out
|
- go test -cover -coverprofile=coverage.out
|
||||||
|
|
||||||
build_linux_amd64:
|
build_linux_amd64:
|
||||||
image: golang:1.9
|
image: golang:1.9
|
||||||
|
pull: true
|
||||||
group: build
|
group: build
|
||||||
environment:
|
environment:
|
||||||
- GOOS=linux
|
- GOOS=linux
|
||||||
@ -21,6 +23,7 @@ pipeline:
|
|||||||
|
|
||||||
build_linux_arm64:
|
build_linux_arm64:
|
||||||
image: golang:1.9
|
image: golang:1.9
|
||||||
|
pull: true
|
||||||
group: build
|
group: build
|
||||||
environment:
|
environment:
|
||||||
- GOOS=linux
|
- GOOS=linux
|
||||||
@ -31,6 +34,7 @@ pipeline:
|
|||||||
|
|
||||||
build_linux_arm:
|
build_linux_arm:
|
||||||
image: golang:1.9
|
image: golang:1.9
|
||||||
|
pull: true
|
||||||
group: build
|
group: build
|
||||||
environment:
|
environment:
|
||||||
- GOOS=linux
|
- GOOS=linux
|
||||||
@ -42,6 +46,7 @@ pipeline:
|
|||||||
|
|
||||||
# build_windows_amd64:
|
# build_windows_amd64:
|
||||||
# image: golang:1.9-nanoserver
|
# image: golang:1.9-nanoserver
|
||||||
|
# pull: true
|
||||||
# group: build
|
# group: build
|
||||||
# environment:
|
# environment:
|
||||||
# - GOOS=windows
|
# - 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
|
# - go build -v -ldflags "-X main.build=${DRONE_BUILD_NUMBER}" -a -o release/windows/amd64/drone-s3-sync
|
||||||
|
|
||||||
publish_linux_amd64:
|
publish_linux_amd64:
|
||||||
image: plugins/docker
|
image: plugins/docker:17.05
|
||||||
|
pull: true
|
||||||
repo: plugins/s3-sync
|
repo: plugins/s3-sync
|
||||||
tags: [ latest, 1.1.0, 1.1, 1 ]
|
tags: [ latest, 1.1.0, 1.1, 1 ]
|
||||||
secrets: [ docker_username, docker_password ]
|
secrets: [ docker_username, docker_password ]
|
||||||
@ -60,7 +66,8 @@ pipeline:
|
|||||||
event: push
|
event: push
|
||||||
|
|
||||||
publish_linux_arm64:
|
publish_linux_arm64:
|
||||||
image: plugins/docker
|
image: plugins/docker:17.05
|
||||||
|
pull: true
|
||||||
repo: plugins/s3-sync
|
repo: plugins/s3-sync
|
||||||
tags: [ linux-arm64 ]
|
tags: [ linux-arm64 ]
|
||||||
secrets: [ docker_username, docker_password ]
|
secrets: [ docker_username, docker_password ]
|
||||||
@ -70,7 +77,8 @@ pipeline:
|
|||||||
event: push
|
event: push
|
||||||
|
|
||||||
publish_linux_arm:
|
publish_linux_arm:
|
||||||
image: plugins/docker
|
image: plugins/docker:17.05
|
||||||
|
pull: true
|
||||||
repo: plugins/s3-sync
|
repo: plugins/s3-sync
|
||||||
tags: [ linux-arm ]
|
tags: [ linux-arm ]
|
||||||
secrets: [ docker_username, docker_password ]
|
secrets: [ docker_username, docker_password ]
|
||||||
@ -80,7 +88,8 @@ pipeline:
|
|||||||
event: push
|
event: push
|
||||||
|
|
||||||
# publish_windows_amd64:
|
# publish_windows_amd64:
|
||||||
# image: plugins/docker
|
# image: plugins/docker:17.05
|
||||||
|
# pull: true
|
||||||
# repo: plugins/s3-sync
|
# repo: plugins/s3-sync
|
||||||
# tags: [ windows-amd64 ]
|
# tags: [ windows-amd64 ]
|
||||||
# secrets: [ docker_username, docker_password ]
|
# secrets: [ docker_username, docker_password ]
|
||||||
@ -89,8 +98,11 @@ pipeline:
|
|||||||
# branch: master
|
# branch: master
|
||||||
# event: push
|
# event: push
|
||||||
|
|
||||||
# microbadger:
|
microbadger:
|
||||||
# image: plugins/webhook
|
image: plugins/webhook:1
|
||||||
# secrets: [ webhook_url ]
|
pull: true
|
||||||
# when:
|
secrets: [ webhook_url ]
|
||||||
# status: [ success ]
|
when:
|
||||||
|
branch: master
|
||||||
|
event: push
|
||||||
|
status: [ success ]
|
||||||
|
10
Dockerfile
10
Dockerfile
@ -1,14 +1,6 @@
|
|||||||
FROM alpine:3.6 as alpine
|
FROM plugins/base:multiarch
|
||||||
RUN apk add -U --no-cache ca-certificates mailcap
|
|
||||||
|
|
||||||
FROM scratch
|
|
||||||
MAINTAINER Drone.IO Community <drone-dev@googlegroups.com>
|
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.version=latest
|
||||||
LABEL org.label-schema.vcs-url="https://github.com/drone-plugins/drone-s3-sync.git"
|
LABEL org.label-schema.vcs-url="https://github.com/drone-plugins/drone-s3-sync.git"
|
||||||
LABEL org.label-schema.name="Drone S3 Sync"
|
LABEL org.label-schema.name="Drone S3 Sync"
|
||||||
|
@ -1,14 +1,6 @@
|
|||||||
FROM alpine:3.6 as alpine
|
FROM plugins/base:multiarch
|
||||||
RUN apk add -U --no-cache ca-certificates mailcap
|
|
||||||
|
|
||||||
FROM scratch
|
|
||||||
MAINTAINER Drone.IO Community <drone-dev@googlegroups.com>
|
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.version=latest
|
||||||
LABEL org.label-schema.vcs-url="https://github.com/drone-plugins/drone-s3-sync.git"
|
LABEL org.label-schema.vcs-url="https://github.com/drone-plugins/drone-s3-sync.git"
|
||||||
LABEL org.label-schema.name="Drone S3 Sync"
|
LABEL org.label-schema.name="Drone S3 Sync"
|
||||||
|
@ -1,14 +1,6 @@
|
|||||||
FROM alpine:3.6 as alpine
|
FROM plugins/base:multiarch
|
||||||
RUN apk add -U --no-cache ca-certificates mailcap
|
|
||||||
|
|
||||||
FROM scratch
|
|
||||||
MAINTAINER Drone.IO Community <drone-dev@googlegroups.com>
|
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.version=latest
|
||||||
LABEL org.label-schema.vcs-url="https://github.com/drone-plugins/drone-s3-sync.git"
|
LABEL org.label-schema.vcs-url="https://github.com/drone-plugins/drone-s3-sync.git"
|
||||||
LABEL org.label-schema.name="Drone S3 Sync"
|
LABEL org.label-schema.name="Drone S3 Sync"
|
||||||
|
@ -1,8 +1,6 @@
|
|||||||
FROM microsoft/nanoserver:latest
|
FROM microsoft/nanoserver:latest
|
||||||
MAINTAINER Drone.IO Community <drone-dev@googlegroups.com>
|
MAINTAINER Drone.IO Community <drone-dev@googlegroups.com>
|
||||||
|
|
||||||
ENV GODEBUG=netdns=go
|
|
||||||
|
|
||||||
LABEL org.label-schema.version=latest
|
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.vcs-url="https://github.com/drone-plugins/drone-s3-sync.git"
|
||||||
LABEL org.label-schema.name="Drone S3 Sync"
|
LABEL org.label-schema.name="Drone S3 Sync"
|
||||||
|
Loading…
Reference in New Issue
Block a user