1
0
Fork 0
mirror of https://github.com/shouptech/humulus.git synced 2026-02-03 16:09:44 +00:00

Ok, I think this is a good tag strategy...

This commit is contained in:
Emma 2019-06-29 21:20:49 -06:00
parent 25ee3cf2a5
commit 8dbc73d087

View file

@ -33,28 +33,33 @@ kind: pipeline
name: publish name: publish
steps: 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 - name: docker
image: plugins/docker image: plugins/docker
settings: settings:
auto_tag: false
username: username:
from_secret: DOCKER_USERNAME from_secret: DOCKER_USERNAME
password: password:
from_secret: DOCKER_PASSWORD from_secret: DOCKER_PASSWORD
repo: shouptech/humulus 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: depends_on:
- test - test