This commit is contained in:
parent
90564413c2
commit
3a98c50301
1 changed files with 46 additions and 0 deletions
46
.woodpecker.yml
Normal file
46
.woodpecker.yml
Normal file
|
@ -0,0 +1,46 @@
|
|||
steps:
|
||||
backend:
|
||||
image: rust
|
||||
commands:
|
||||
- cargo build
|
||||
# - make migrate
|
||||
# - make
|
||||
# - make release
|
||||
# - make test // requires Docker-in-Docker
|
||||
|
||||
build_docker_img:
|
||||
image: plugins/docker
|
||||
when:
|
||||
event: [pull_request]
|
||||
settings:
|
||||
dry_run: true
|
||||
repo: mcaptcha/dcache
|
||||
tags: latest
|
||||
|
||||
build_and_publish_docker_img:
|
||||
image: plugins/docker
|
||||
when:
|
||||
event: [push, tag, deployment]
|
||||
settings:
|
||||
username: mcaptcha
|
||||
password:
|
||||
from_secret: DOCKER_TOKEN
|
||||
repo: mcaptcha/dcache
|
||||
tags: latest
|
||||
|
||||
# publish_bins:
|
||||
# image: rust
|
||||
# when:
|
||||
# event: [push, tag, deployment]
|
||||
# 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
|
||||
# secrets: [RELEASE_BOT_GPG_SIGNING_KEY, DUMBSERVE_PASSWORD, GPG_PASSWORD]
|
||||
#
|
||||
#services:
|
||||
# database:
|
||||
# image: postgres
|
||||
# environment:
|
||||
# - POSTGRES_PASSWORD=password
|
Loading…
Reference in a new issue