1
0
Fork 0

Add dockerhub pipeline
continuous-integration/drone/push Build is failing Details

test
Ambrose Chua 2020-05-13 12:03:50 +08:00
parent 7ea0fc0f01
commit bbe5659668
Signed by: ambrose
GPG Key ID: BC367D33F140B5C2
1 changed files with 13 additions and 11 deletions

View File

@ -2,14 +2,16 @@ kind: pipeline
name: default
steps:
- name: docker
image: plugins/docker
settings:
registry: registry.makerforce.io
repo: registry.makerforce.io/pwd/caddy
tags:
- latest
username:
from_secret: docker_username
password:
from_secret: docker_password
- name: dockerhub
image: hairyhenderson/dockerfiles-builder:latest
commands:
- bashbrew build caddy
- echo $PASSWORD | docker login --username $USERNAME --password-stdin
- bashbrew push productionwentdown/caddy
environment:
BASHBREW_LIBRARY: ./library
BASHBREW_NAMESPACE: caddy
USERNAME:
from_secret: dockerhub_username
PASSWORD:
from_secret: dockerhub_token