fix: CI: publish only on master #20
1 changed files with 8 additions and 3 deletions
|
@ -1,5 +1,5 @@
|
||||||
pipeline:
|
steps:
|
||||||
backend:
|
test:
|
||||||
image: rust
|
image: rust
|
||||||
# environment:
|
# environment:
|
||||||
# - DATABASE_URL=postgres://postgres:password@database:5432/postgres
|
# - DATABASE_URL=postgres://postgres:password@database:5432/postgres
|
||||||
|
@ -11,7 +11,9 @@ pipeline:
|
||||||
|
|
||||||
publish_bins:
|
publish_bins:
|
||||||
image: rust
|
image: rust
|
||||||
|
when:
|
||||||
|
event: [push, tag, deployment]
|
||||||
|
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
|
||||||
|
@ -21,6 +23,9 @@ pipeline:
|
||||||
|
|
||||||
publish:
|
publish:
|
||||||
image: plugins/docker
|
image: plugins/docker
|
||||||
|
when:
|
||||||
|
event: [push, tag, deployment]
|
||||||
|
branch: master
|
||||||
settings:
|
settings:
|
||||||
username: realaravinth
|
username: realaravinth
|
||||||
password:
|
password:
|
||||||
|
|
Loading…
Reference in a new issue