diff --git a/.woodpecker.yml b/.woodpecker.yml index e1f2c68..66d5a9a 100644 --- a/.woodpecker.yml +++ b/.woodpecker.yml @@ -1,18 +1,11 @@ -when: - branch: main - -variables: - - &file Dockerfile - - &repo codeberg.org/${CI_REPO_OWNER}/safetwitch-backend - -steps: +pipeline: dryrun: image: woodpeckerci/plugin-docker-buildx settings: - dockerfile: *file + dockerfile: Dockerfile platforms: linux/arm/v7,linux/arm64/v8,linux/amd64,linux/ppc64le dry_run: true - repo: *repo + repo: https://codeberg.com/${CI_REPO_OWNER}/safetwitch-backend tags: latest when: event: pull_request @@ -20,9 +13,9 @@ steps: publish: image: woodpeckerci/plugin-docker-buildx settings: - dockerfile: *file + dockerfile: Dockerfile platforms: linux/arm/v7,linux/arm64/v8,linux/amd64,linux/ppc64le - repo: *repo + repo: https://codeberg.com/${CI_REPO_OWNER}/safetwitch-backend registry: codeberg.org tags: latest username: ${CI_REPO_OWNER}