webserver.c/.woodpecker/pipeline.yml
2024-01-16 09:09:40 -05:00

33 lines
653 B
YAML

when:
branch: main
variables:
- &file Dockerfile
- &repo gitea.michaelthomson.dev/${CI_REPO_OWNER}/michaelthomson
steps:
dryrun:
image: woodpeckerci/plugin-docker-buildx
settings:
dockerfile: *file
platforms: linux/amd64
dry_run: true
repo: *repo
tags: latest
when:
event: pull_request
publish:
image: woodpeckerci/plugin-docker-buildx
settings:
dockerfile: *file
platforms: linux/amd64
repo: *repo
registry: gitea.michaelthomson.dev
tags: latest
username: ${CI_REPO_OWNER}
password:
from_secret: pa_token
when:
event: push