diff --git a/.woodpecker/.dev.yml b/.woodpecker/.dev.yml index e716552..33de2a8 100644 --- a/.woodpecker/.dev.yml +++ b/.woodpecker/.dev.yml @@ -6,6 +6,10 @@ pipeline: - git clone https://github.com/pixelfed/pixelfed.git - cd pixelfed - git checkout ${BRANCH} + when: + branch: main + event: + - push docker: image: plugins/docker secrets: @@ -17,6 +21,10 @@ pipeline: dockerfile: pixelfed/contrib/docker/Dockerfile.apache tags: - ${BRANCH} + when: + branch: main + event: + - push cr: image: plugins/docker secrets: @@ -31,11 +39,10 @@ pipeline: dockerfile: pixelfed/contrib/docker/Dockerfile.apache tags: - ${BRANCH} - -when: - branch: main - event: - - push + when: + branch: main + event: + - push matrix: BRANCH: diff --git a/.woodpecker/.release.yml b/.woodpecker/.release.yml index c270b3f..d2e9f80 100644 --- a/.woodpecker/.release.yml +++ b/.woodpecker/.release.yml @@ -4,6 +4,10 @@ pipeline: commands: - apk add curl tar - curl -L "https://github.com/pixelfed/pixelfed/archive/refs/tags/${VERSION}.tar.gz" | tar xvz --strip 1 + when: + branch: main + event: + - push docker: image: plugins/docker secrets: @@ -16,6 +20,10 @@ pipeline: tags: - ${VERSION} - latest + when: + branch: main + event: + - push cr: image: plugins/docker secrets: @@ -31,11 +39,10 @@ pipeline: tags: - ${VERSION} - latest - -when: - branch: main - event: - - push + when: + branch: main + event: + - push matrix: VERSION: