mirror of
https://github.com/shouptech/humulus.git
synced 2026-02-03 16:09:44 +00:00
Change tag methodology
This commit is contained in:
parent
1dd644bf2e
commit
5251c3dbca
1 changed files with 20 additions and 1 deletions
21
.drone.yml
21
.drone.yml
|
|
@ -33,15 +33,34 @@ kind: pipeline
|
||||||
name: publish
|
name: publish
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
|
- name: tag
|
||||||
|
image: alpine
|
||||||
|
steps:
|
||||||
|
- echo "$DRONE_COMMIT_SHA,latest" > .tags
|
||||||
|
when:
|
||||||
|
|
||||||
|
|
||||||
|
- name: tag-release
|
||||||
|
image: alpine
|
||||||
|
steps:
|
||||||
|
- echo "$DRONE_TAG" > .tags
|
||||||
|
when:
|
||||||
|
event:
|
||||||
|
exclude:
|
||||||
|
- tag
|
||||||
|
|
||||||
- name: docker
|
- name: docker
|
||||||
image: plugins/docker
|
image: plugins/docker
|
||||||
settings:
|
settings:
|
||||||
auto_tag: true
|
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
|
||||||
|
when:
|
||||||
|
event:
|
||||||
|
- tag
|
||||||
|
|
||||||
depends_on:
|
depends_on:
|
||||||
- test
|
- test
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue