fix(ci): tagging logic for release docker images
This commit is contained in:
parent
568cc16797
commit
608bde9806
15
.drone.yml
15
.drone.yml
@ -667,6 +667,16 @@ steps:
|
|||||||
ref:
|
ref:
|
||||||
- refs/heads/main
|
- refs/heads/main
|
||||||
|
|
||||||
|
- name: generate-tags
|
||||||
|
image: thegeeklab/docker-autotag
|
||||||
|
environment:
|
||||||
|
DOCKER_AUTOTAG_VERSION: ${DRONE_TAG}
|
||||||
|
DOCKER_AUTOTAG_EXTRA_TAGS: latest
|
||||||
|
depends_on: [ fetch-tags ]
|
||||||
|
when:
|
||||||
|
ref:
|
||||||
|
- "refs/tags/**"
|
||||||
|
|
||||||
- name: docker-release
|
- name: docker-release
|
||||||
image: thegeeklab/drone-docker-buildx
|
image: thegeeklab/drone-docker-buildx
|
||||||
privileged: true
|
privileged: true
|
||||||
@ -677,14 +687,13 @@ steps:
|
|||||||
password:
|
password:
|
||||||
from_secret: docker_password
|
from_secret: docker_password
|
||||||
repo: vikunja/api
|
repo: vikunja/api
|
||||||
auto_tag: true
|
|
||||||
platforms:
|
platforms:
|
||||||
- linux/386
|
- linux/386
|
||||||
- linux/amd64
|
- linux/amd64
|
||||||
- linux/arm/v6
|
- linux/arm/v6
|
||||||
- linux/arm/v7
|
- linux/arm/v7
|
||||||
- linux/arm64/v8
|
- linux/arm64/v8
|
||||||
depends_on: [ fetch-tags ]
|
depends_on: [ generate-tags ]
|
||||||
when:
|
when:
|
||||||
ref:
|
ref:
|
||||||
- "refs/tags/**"
|
- "refs/tags/**"
|
||||||
@ -721,6 +730,6 @@ steps:
|
|||||||
- failure
|
- failure
|
||||||
---
|
---
|
||||||
kind: signature
|
kind: signature
|
||||||
hmac: b72d8116bc58feb2817a33c470c231b34c93a3650f402010217d50bf8b3ca341
|
hmac: 37d091b9fe138091044e4dc44633bf6e059478006b3e697c3eff80a49a4837d8
|
||||||
|
|
||||||
...
|
...
|
||||||
|
Loading…
x
Reference in New Issue
Block a user