git-next/.woodpecker/tag-created.yml
Paul Campbell ca30d1bd11 build(woodpecker): merge and rename jobs
build(woodpecker): only run checks against next branch

Merges todo-check into main job.
Rename file build as push-next
Run lint ahead of build

build(woodpecker): rename builder as cron-docker-builder

build(woodpecker): merge release and docker into tag-created
2024-04-10 07:13:11 +01:00

33 lines
907 B
YAML

steps:
publish-to-forgejo:
when:
- event: tag
ref: refs/tags/v*
# INFO: https://woodpecker-ci.org/plugins/Gitea%20Release
image: docker.io/woodpeckerci/plugin-gitea-release:0.3.1
settings:
base_url: https://git.kemitix.net
api_key:
from_secret: FORGEJO_RELEASE_PLUGIN
target: main
prerelease: true
docker-build:
when:
- event: tag
ref: refs/tags/v*
# INFO: https://woodpecker-ci.org/plugins/Docker%20Buildx
image: docker.io/woodpeckerci/plugin-docker-buildx:3.2.1
settings:
username: kemitix
repo: git.kemitix.net/kemitix/git-next
dockerfile: Dockerfile
build_args:
- CARGO_PROFILE=release
- CARGO_TARGET=release
auto_tag: true
dry-run: false # push to remote repo
registry: git.kemitix.net
password:
from_secret: woodpecker-docker-push