Skip to content

Commit

Permalink
Publish docker image.
Browse files Browse the repository at this point in the history
  • Loading branch information
Quving committed Apr 5, 2020
1 parent 2b230a7 commit 8b75cff
Showing 1 changed file with 34 additions and 0 deletions.
34 changes: 34 additions & 0 deletions .drone.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
---
kind: pipeline
type: docker
name: pipeline

steps:
- name: publish latest
image: plugins/docker
settings:
repo:
from_secret: docker_repository
tags: latest
username:
from_secret: docker_username
password:
from_secret: docker_password
when:
status: [ success ]
branch: [ master ]

- name: publish tag
image: plugins/docker
settings:
repo:
from_secret: docker_repository
tags: ${DRONE_TAG}
username:
from_secret: docker_username
password:
from_secret: docker_password
when:
status: [ success ]
event:
- tag

0 comments on commit 8b75cff

Please sign in to comment.