From 162e815cd58628e7be97a6e0486559a1cb265295 Mon Sep 17 00:00:00 2001 From: Aravinth Manivannan Date: Sun, 25 Dec 2022 16:49:06 +0530 Subject: [PATCH] feat: CI: build docker and bin in all circumstances but publish only on master --- .woodpecker.yml | 29 +++++++++++++++++++++++------ 1 file changed, 23 insertions(+), 6 deletions(-) diff --git a/.woodpecker.yml b/.woodpecker.yml index 8e767d9..b3336f7 100644 --- a/.woodpecker.yml +++ b/.woodpecker.yml @@ -5,22 +5,39 @@ pipeline: # - DATABASE_URL=postgres://postgres:password@database:5432/postgres commands: # - make migrate - - make - make test - make release publish_bins: image: rust - + when: + event: [push] + branch: master commands: - - apt update - - apt-get -y --no-install-recommends install gpg tar curl wget - - echo -n "$RELEASE_BOT_GPG_SIGNING_KEY" | gpg --batch --import --pinentry-mode loopback - - ./scripts/bin-publish.sh publish master latest $DUMBSERVE_PASSWORD + - apt update + - apt-get -y --no-install-recommends install gpg tar curl wget + - echo -n "$RELEASE_BOT_GPG_SIGNING_KEY" | gpg --batch --import --pinentry-mode loopback + - make release + - ./scripts/bin-publish.sh publish master latest $DUMBSERVE_PASSWORD secrets: [ RELEASE_BOT_GPG_SIGNING_KEY, DUMBSERVE_PASSWORD, GPG_PASSWORD ] + build_docker_img: + image: plugins/docker + when: + branch: !master + settings: + dry_run: true + username: realaravinth + password: + from_secret: DOCKER_TOKEN + repo: realaravinth/librepages-conductor + tags: latest + publish: image: plugins/docker + when: + event: [push] + branch: master settings: username: realaravinth password: