Work around auto tag for main branch

This commit is contained in:
kolaente 2021-02-12 20:02:51 +01:00
parent 26d9f8d365
commit e8d7ea8586
No known key found for this signature in database
GPG Key ID: F40E70337AB24C9B
1 changed files with 21 additions and 7 deletions

View File

@ -118,7 +118,7 @@ steps:
source: cypress/screenshots/**/**/* source: cypress/screenshots/**/**/*
strip_prefix: cypress/screenshots/ strip_prefix: cypress/screenshots/
target: /${DRONE_REPO}/${DRONE_PULL_REQUEST}_${DRONE_BRANCH}/${DRONE_BUILD_NUMBER}/ target: /${DRONE_REPO}/${DRONE_PULL_REQUEST}_${DRONE_BRANCH}/${DRONE_BUILD_NUMBER}/
depends_on: depends_on:
- test-frontend - test-frontend
when: when:
status: status:
@ -328,8 +328,7 @@ steps:
password: password:
from_secret: docker_password from_secret: docker_password
repo: vikunja/frontend repo: vikunja/frontend
auto_tag: true tags: latest-linux-arm
auto_tag_suffix: linux-arm
build_args: build_args:
- USE_RELEASE=true - USE_RELEASE=true
- RELEASE_VERSION=unstable - RELEASE_VERSION=unstable
@ -368,8 +367,7 @@ steps:
password: password:
from_secret: docker_password from_secret: docker_password
repo: vikunja/frontend repo: vikunja/frontend
auto_tag: true tags: latest-linux-arm64
auto_tag_suffix: linux-arm64
build_args: build_args:
- USE_RELEASE=true - USE_RELEASE=true
- RELEASE_VERSION=unstable - RELEASE_VERSION=unstable
@ -427,8 +425,7 @@ steps:
password: password:
from_secret: docker_password from_secret: docker_password
repo: vikunja/frontend repo: vikunja/frontend
auto_tag: true tags: latest-linux-amd64
auto_tag_suffix: linux-amd64
build_args: build_args:
- USE_RELEASE=true - USE_RELEASE=true
- RELEASE_VERSION=unstable - RELEASE_VERSION=unstable
@ -469,6 +466,20 @@ depends_on:
- docker-arm-release - docker-arm-release
steps: steps:
- name: manifest
pull: always
image: plugins/manifest
settings:
tags: latest
spec: docker-manifest.tmpl
password:
from_secret: docker_password
username:
from_secret: docker_username
when:
ref:
- refs/heads/main
- name: manifest - name: manifest
pull: always pull: always
image: plugins/manifest image: plugins/manifest
@ -480,6 +491,9 @@ steps:
from_secret: docker_password from_secret: docker_password
username: username:
from_secret: docker_username from_secret: docker_username
when:
ref:
- "refs/tags/**"
--- ---
kind: pipeline kind: pipeline