diff --git a/.woodpecker.yml b/.woodpecker.yml index 6ba65ad..e1f2c68 100644 --- a/.woodpecker.yml +++ b/.woodpecker.yml @@ -1,18 +1,32 @@ 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: codeberg.org/${CI_REPO_OWNER}/safetwitch-backend + repo: *repo registry: codeberg.org - tags: edge + tags: latest username: ${CI_REPO_OWNER} password: from_secret: docker_password when: - event: push - path: *file - \ No newline at end of file + event: push \ No newline at end of file