mirror of
https://codeberg.org/SafeTwitch/safetwitch-backend.git
synced 2024-12-22 05:02:58 -05:00
32 lines
No EOL
723 B
YAML
32 lines
No EOL
723 B
YAML
when:
|
|
branch: main
|
|
|
|
variables:
|
|
- &file Dockerfile
|
|
- &repo codeberg.org/${CI_REPO_OWNER}/safetwitch-backend
|
|
|
|
steps:
|
|
dryrun:
|
|
image: woodpeckerci/plugin-docker-buildx
|
|
settings:
|
|
dockerfile: *file
|
|
platforms: linux/arm/v7,linux/arm64/v8,linux/amd64,linux/ppc64le
|
|
dry_run: true
|
|
repo: *repo
|
|
tags: latest
|
|
when:
|
|
event: pull_request
|
|
|
|
publish:
|
|
image: woodpeckerci/plugin-docker-buildx
|
|
settings:
|
|
dockerfile: *file
|
|
platforms: linux/arm/v7,linux/arm64/v8,linux/amd64,linux/ppc64le
|
|
repo: *repo
|
|
registry: codeberg.org
|
|
tags: latest
|
|
username: ${CI_REPO_OWNER}
|
|
password:
|
|
from_secret: docker_password
|
|
when:
|
|
event: push |