auto tag drone

This commit is contained in:
Julius 2020-11-27 19:52:56 +01:00
parent 2a7ea66d69
commit d34250a50b
Signed by: j00lz
GPG key ID: 09102CB8DF00D3CD

View file

@ -6,8 +6,6 @@ name: default
steps: steps:
- name: kaniko - name: kaniko
image: ghcr.io/finitum/drone-kaniko:0.7.0 image: ghcr.io/finitum/drone-kaniko:0.7.0
when:
branch: [master]
settings: settings:
cache: true cache: true
username: username:
@ -16,17 +14,4 @@ steps:
from_secret: REGISTRY_PASSWORD from_secret: REGISTRY_PASSWORD
registry: harbor.voidcorp.nl registry: harbor.voidcorp.nl
repo: library/galerie repo: library/galerie
tags: latest tags: ${DRONE_COMMIT_BRANCH}
- name: kaniko-test
image: ghcr.io/finitum/drone-kaniko:0.7.0
when:
branch: [test]
settings:
cache: true
username:
from_secret: REGISTRY_USER
password:
from_secret: REGISTRY_PASSWORD
registry: harbor.voidcorp.nl
repo: library/galerie
tags: test