golang-base-image/.drone.yml

39 lines
744 B
YAML
Raw Normal View History

2020-08-15 16:36:55 +00:00
---
kind: pipeline
type: docker
name: default
steps:
2020-12-08 17:10:46 +00:00
- name: build docker image (alpine)
2020-08-15 16:36:55 +00:00
image: plugins/docker
environment:
DOCKER_BUILDKIT: '1'
settings:
purge: true
repo: otakukaze/golang-base-image
2021-01-04 15:04:31 +00:00
username: otakukaze
password:
from_secret: password
2020-08-15 16:36:55 +00:00
tags:
- "${DRONE_BRANCH}"
when:
ref:
- refs/heads/1-alpine
2020-12-08 17:10:46 +00:00
- name: build docker image (debian)
2020-12-08 17:10:21 +00:00
image: plugins/docker
environment:
DOCKER_BUILDKIT: '1'
settings:
purge: true
repo: otakukaze/golang-base-image
2021-01-04 15:04:31 +00:00
username: otakukaze
password:
from_secret: password
2020-12-08 17:10:21 +00:00
tags:
- "1"
- "latest"
when:
ref:
- refs/heads/master