You've already forked docker-go-semantic-release
feat: Initial commit 🎉
This commit is contained in:
77
.woodpecker.yml
Normal file
77
.woodpecker.yml
Normal file
@@ -0,0 +1,77 @@
|
||||
variables:
|
||||
- &platforms 'linux/arm64,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
|
||||
- build_args: &build_args
|
||||
- TAG: ${CI_COMMIT_TAG}
|
||||
clone:
|
||||
git:
|
||||
image: woodpeckerci/plugin-git
|
||||
settings:
|
||||
partial: false
|
||||
tags: true
|
||||
|
||||
steps:
|
||||
build-release:
|
||||
image: docker.io/cybercinch/go-semrelease:golang1.20
|
||||
pull: true
|
||||
commands:
|
||||
- go-semantic-release release # Actually make the release on Gitea.
|
||||
environment:
|
||||
GITEA_TOKEN:
|
||||
from_secret: gitea_token
|
||||
GITEA_URL:
|
||||
from_secret: gitea_server_url
|
||||
when:
|
||||
branch: ${CI_REPO_DEFAULT_BRANCH}
|
||||
event:
|
||||
- push
|
||||
- manual
|
||||
|
||||
publish-docker-tagged:
|
||||
image: woodpeckerci/plugin-docker-buildx
|
||||
pull: true
|
||||
settings:
|
||||
<<: *docker_creds
|
||||
registry: hub.cybercinch.nz
|
||||
repo: hub.cybercinch.nz/cybercinch/${CI_REPO_NAME}
|
||||
dockerfile: Dockerfile
|
||||
platforms: *platforms
|
||||
build_args:
|
||||
- TAG=${CI_COMMIT_TAG}
|
||||
tags:
|
||||
- latest
|
||||
- ${CI_COMMIT_TAG}
|
||||
when:
|
||||
branch: ${CI_REPO_DEFAULT_BRANCH}
|
||||
event:
|
||||
- tag
|
||||
|
||||
# publish-docker-develop:
|
||||
# image: docker.io/cybercinch/woodpecker-plugin-depot
|
||||
# pull: true
|
||||
# settings:
|
||||
# <<: *docker_creds
|
||||
# token:
|
||||
# from_secret: depot_token
|
||||
# repohost: hub.cybercinch.nz
|
||||
# repo: cybercinch/${CI_REPO_NAME}
|
||||
# project:
|
||||
# from_secret: depot_project
|
||||
# dockerfile: Dockerfile.dev
|
||||
# push: true
|
||||
# platforms: linux/amd64
|
||||
# tags: ["develop"]
|
||||
# when:
|
||||
# branch: develop
|
||||
# event:
|
||||
# - push
|
||||
# - manual
|
||||
Reference in New Issue
Block a user