diff --git a/.woodpecker.yml b/.woodpecker.yml index 54e1244..22dd70b 100644 --- a/.woodpecker.yml +++ b/.woodpecker.yml @@ -7,6 +7,17 @@ pipeline: # - make migrate - make - make test + - make release + + publish_bins: + image: rust + + commands: + - apt update + - apt-get -y --no-install-recommends 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 + secrets: [ RELEASE_BOT_GPG_SIGNING_KEY, DUMBSERVE_PASSWORD, GPG_PASSWORD ] publish: image: plugins/docker @@ -22,12 +33,3 @@ pipeline: # image: postgres # environment: # - POSTGRES_PASSWORD=password - publish_bins: - image: realaravinth/librepages-conductor - - commands: - - apt update - - apt-get -y --no-install-recommends 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 - secrets: [ RELEASE_BOT_GPG_SIGNING_KEY, DUMBSERVE_PASSWORD, GPG_PASSWORD ] diff --git a/scripts/bin-publish.sh b/scripts/bin-publish.sh index e2f7434..c30396e 100755 --- a/scripts/bin-publish.sh +++ b/scripts/bin-publish.sh @@ -37,7 +37,7 @@ DOCKER_IMG="realaravinth/$NAME:$3" get_bin(){ - cp /usr/local/bin/conductor $TARGET_DIR + cp target/release/conductor $TARGET_DIR } copy() {