mirror of
https://github.com/shouptech/humulus.git
synced 2026-02-03 14:59:43 +00:00
Ok, I think this is a good tag strategy...
This commit is contained in:
parent
25ee3cf2a5
commit
8dbc73d087
1 changed files with 19 additions and 14 deletions
33
.drone.yml
33
.drone.yml
|
|
@ -33,28 +33,33 @@ kind: pipeline
|
|||
name: publish
|
||||
|
||||
steps:
|
||||
- name: tag
|
||||
image: alpine
|
||||
steps:
|
||||
- echo "$DRONE_COMMIT_SHA,latest" > .tags
|
||||
|
||||
- name: tag-release
|
||||
image: alpine
|
||||
steps:
|
||||
- echo "$DRONE_TAG" > .tags
|
||||
when:
|
||||
event:
|
||||
- tag
|
||||
|
||||
- name: docker
|
||||
image: plugins/docker
|
||||
settings:
|
||||
auto_tag: false
|
||||
username:
|
||||
from_secret: DOCKER_USERNAME
|
||||
password:
|
||||
from_secret: DOCKER_PASSWORD
|
||||
repo: shouptech/humulus
|
||||
tags:
|
||||
- latest
|
||||
when:
|
||||
branch:
|
||||
- master
|
||||
|
||||
- name: docker
|
||||
image: plugins/docker
|
||||
settings:
|
||||
username:
|
||||
from_secret: DOCKER_USERNAME
|
||||
password:
|
||||
from_secret: DOCKER_PASSWORD
|
||||
repo: shouptech/humulus
|
||||
tags:
|
||||
- ${DRONE_TAG}
|
||||
when:
|
||||
event:
|
||||
- tag
|
||||
|
||||
depends_on:
|
||||
- test
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue