drone file modified

This commit is contained in:
Ivan Pedrazas
2017-08-28 23:06:41 +01:00
parent bdc328a99e
commit 7bcd5ddda4
+17 -4
View File
@@ -22,14 +22,26 @@ pipeline:
- DOCKER_HOST=tcp://127.0.0.1:2375
- TAG=${DRONE_BRANCH}-${DRONE_COMMIT_SHA:0:7}
commands:
- docker login -u="${QUAY_USERNAME}" -p="${QUAY_PASSWORD}" quay.io
- docker login -u="$QUAY_USERNAME" -p="$QUAY_PASSWORD" quay.io
- docker build -t image .
- docker tag image quay.io/ipedrazas/drone-helm:${TAG}
- docker push quay.io/ipedrazas/drone-helm
secrets: ["quay_username", "quay_password"]
build_docker_latest:
image: docker:17.05
environment:
- DOCKER_HOST=tcp://127.0.0.1:2375
- TAG=${DRONE_BRANCH}-${DRONE_COMMIT_SHA:0:7}
commands:
- docker login -u="$QUAY_USERNAME" -p="$QUAY_PASSWORD" quay.io
- docker build -t image .
- docker tag image quay.io/ipedrazas/drone-helm:latest
- docker tag image quay.io/ipedrazas/drone-helm:${TAG}
- docker push quay.io/ipedrazas/drone-helm
# when:
# event: [push]
# branch: [master]
when:
event: [push]
branch: [master]
slack:
image: plugins/slack
@@ -37,6 +49,7 @@ pipeline:
username: drone
template: >
{{ build.author }} finished building *<http://drone.sohohousedigital.com/SohoHouse/{{ repo.name }}/{{ build.number }}|{{ build.branch }} ({{ build.number }})>* of {{ repo.name }} with a {{ build.status }} status
secrets: ["slack_webhook"]
services: