forked from davidbyttow/drone-ecr-registry-plugin
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.drone.yml
44 lines (40 loc) · 835 Bytes
/
.drone.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
kind: pipeline
name: drone-ecr-registry-plugin
workspace:
base: /go
path: src/github.com/finanzcheck/drone-ecr-registry-plugin
steps:
- name: test
image: golang:latest
environment:
commands:
- GO111MODULE=on go test -v ./...
when:
event:
- push
- pull_request
- name: build
image: golang:latest
commands:
- make build
when:
event:
- push
- pull_request
- name: publish
image: plugins/ecr
settings:
registry: 873922239110.dkr.ecr.eu-central-1.amazonaws.com
region: eu-central-1
repo: 873922239110.dkr.ecr.eu-central-1.amazonaws.com/drone-ecr-registry-plugin
dockerfile: docker/Dockerfile
tags:
- latest
- "git_${DRONE_COMMIT_SHA:0:8}"
- "drone_${DRONE_BUILD_NUMBER}"
when:
event:
- push
- tag
branch:
- master