From 74d0751dab0b45cd02d061270be7ef7c12a866b7 Mon Sep 17 00:00:00 2001 From: samuel-p Date: Sun, 16 Jan 2022 12:23:37 +0100 Subject: [PATCH] updated woodpecker --- .woodpecker/.dev.yml | 17 ++++++++++++----- .woodpecker/.release.yml | 17 ++++++++++++----- 2 files changed, 24 insertions(+), 10 deletions(-) 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: