Add Woodpecker pipeline
All checks were successful
ci/woodpecker/manual/woodpecker Pipeline was successful

This commit is contained in:
2024-02-12 22:54:25 +13:00
parent cffeeaa2f8
commit cbe676846a

47
.woodpecker.yml Normal file
View File

@@ -0,0 +1,47 @@
variables:
- &platforms 'linux/arm/v7,linux/arm64/v8,linux/amd64'
- &docker_creds
username:
from_secret: hub_username_cybercinch
password:
from_secret: docker_password_cybercinch
- &pypi_creds
username:
from_secret: hub_username_cybercinch
password:
from_secret: docker_password_cybercinch
steps:
publish-docker-latest:
image: docker.io/cybercinch/woodpecker-plugin-depot
pull: true
group: docker
settings:
<<: *docker_creds
token:
from_secret: depot_token
repohost: hub.cybercinch.nz
repo: cybercinch/${CI_REPO_NAME}
project: 8b4ht8th6p
dockerfile: Dockerfile
push: true
platforms: *platforms
tags: ["latest"]
when:
branch: ${CI_REPO_DEFAULT_BRANCH}
event:
- push
- manual
# publish-server-tagged:
# group: docker
# image: woodpeckerci/plugin-docker-buildx
# settings:
# <<: *docker_creds
# repohost: hub.cybercinch.nz
# repo: cybercinch/imap_retention_manager
# dockerfile: Dockerfile
# platforms: *platforms
# tags: ["latest", "${CI_COMMIT_TAG}"]
# when:
# event: tag