fix(ci): Flip to using buildx for tagged build 🔧 #13

Merged
guisea merged 1 commits from develop into master 2024-04-03 10:37:19 +13:00

View File

@@ -10,6 +10,8 @@ variables:
from_secret: hub_username_cybercinch from_secret: hub_username_cybercinch
password: password:
from_secret: docker_password_cybercinch from_secret: docker_password_cybercinch
- build_args: &build_args
- TAG: ${CI_COMMIT_TAG}
clone: clone:
git: git:
image: woodpeckerci/plugin-git image: woodpeckerci/plugin-git
@@ -65,23 +67,20 @@ steps:
- manual - manual
publish-docker-tagged: publish-docker-tagged:
image: docker.io/cybercinch/woodpecker-plugin-depot image: woodpeckerci/plugin-docker-buildx
pull: true pull: true
settings: settings:
<<: *docker_creds <<: *docker_creds
token: token:
from_secret: depot_token from_secret: depot_token
repohost: hub.cybercinch.nz registry: hub.cybercinch.nz
repo: cybercinch/${CI_REPO_NAME} repo: cybercinch/${CI_REPO_NAME}
project:
from_secret: depot_project
dockerfile: Dockerfile dockerfile: Dockerfile
push: true
platforms: *platforms platforms: *platforms
buildargs: build_args:
- TAG=${CI_COMMIT_TAG} - <<: *build_args
tags: tags:
- "latest" - latest
- ${CI_COMMIT_TAG} - ${CI_COMMIT_TAG}
when: when:
branch: ${CI_REPO_DEFAULT_BRANCH} branch: ${CI_REPO_DEFAULT_BRANCH}