mirror of
https://github.com/ipedrazas/drone-helm.git
synced 2026-06-14 05:12:51 +08:00
drone file modified
This commit is contained in:
+17
-4
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user