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

35 lines
689 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
path: *file
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
path: *file