feat: CI: build docker and bin in all circumstances but publish only on master
All checks were successful
ci/woodpecker/push/woodpecker Pipeline was successful
All checks were successful
ci/woodpecker/push/woodpecker Pipeline was successful
This commit is contained in:
parent
8f4ac4ed38
commit
162e815cd5
1 changed files with 23 additions and 6 deletions
|
@ -5,22 +5,39 @@ pipeline:
|
||||||
# - DATABASE_URL=postgres://postgres:password@database:5432/postgres
|
# - DATABASE_URL=postgres://postgres:password@database:5432/postgres
|
||||||
commands:
|
commands:
|
||||||
# - make migrate
|
# - make migrate
|
||||||
- make
|
|
||||||
- make test
|
- make test
|
||||||
- make release
|
- make release
|
||||||
|
|
||||||
publish_bins:
|
publish_bins:
|
||||||
image: rust
|
image: rust
|
||||||
|
when:
|
||||||
|
event: [push]
|
||||||
|
branch: master
|
||||||
commands:
|
commands:
|
||||||
- apt update
|
- apt update
|
||||||
- apt-get -y --no-install-recommends install gpg tar curl wget
|
- apt-get -y --no-install-recommends install gpg tar curl wget
|
||||||
- echo -n "$RELEASE_BOT_GPG_SIGNING_KEY" | gpg --batch --import --pinentry-mode loopback
|
- echo -n "$RELEASE_BOT_GPG_SIGNING_KEY" | gpg --batch --import --pinentry-mode loopback
|
||||||
- ./scripts/bin-publish.sh publish master latest $DUMBSERVE_PASSWORD
|
- make release
|
||||||
|
- ./scripts/bin-publish.sh publish master latest $DUMBSERVE_PASSWORD
|
||||||
secrets: [ RELEASE_BOT_GPG_SIGNING_KEY, DUMBSERVE_PASSWORD, GPG_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:
|
publish:
|
||||||
image: plugins/docker
|
image: plugins/docker
|
||||||
|
when:
|
||||||
|
event: [push]
|
||||||
|
branch: master
|
||||||
settings:
|
settings:
|
||||||
username: realaravinth
|
username: realaravinth
|
||||||
password:
|
password:
|
||||||
|
|
Loading…
Reference in a new issue