Skip to content

Commit

Permalink
Merge pull request #16 from PhanLe1010/v0.0.x
Browse files Browse the repository at this point in the history
[Backport v0.0.x] Configure Drone to push images for all branches
  • Loading branch information
PhanLe1010 committed Sep 22, 2021
2 parents 35e21e6 + bbf29f9 commit 66d0196
Showing 1 changed file with 4 additions and 9 deletions.
13 changes: 4 additions & 9 deletions .drone.yml
Expand Up @@ -15,7 +15,7 @@ steps:
- name: docker
path: /var/run/docker.sock

- name: docker-publish-master
- name: publish-image
image: plugins/docker
settings:
context: package/
Expand All @@ -24,17 +24,14 @@ steps:
password:
from_secret: docker_password
repo: "longhornio/upgrade-responder"
tag: latest
tag: "${DRONE_BRANCH}-head"
username:
from_secret: docker_username
when:
ref:
include:
- "refs/heads/master"
event:
- push

- name: docker-publish
- name: publish-tagged-image
image: plugins/docker
settings:
context: package/
Expand All @@ -48,9 +45,7 @@ steps:
from_secret: docker_username
when:
instance:
- drone-publish.rancher.io
ref:
- refs/tags/*
- drone-publish.longhorn.io
event:
- tag

Expand Down

0 comments on commit 66d0196

Please sign in to comment.