diff --git a/.woodpecker.yml b/.woodpecker.yml new file mode 100644 index 0000000..c7eb808 --- /dev/null +++ b/.woodpecker.yml @@ -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 \ No newline at end of file