Only build when branch is main [ci skip]

This commit is contained in:
video-prize-ranch 2022-11-18 11:56:19 -05:00
parent 459c23013f
commit b8c2f453e5
No known key found for this signature in database
2 changed files with 5 additions and 1 deletions

View File

@ -11,4 +11,6 @@ pipeline:
from_secret: docker_username
password:
from_secret: docker_password
secrets: [docker_username, docker_password]
secrets: [docker_username, docker_password]
when:
branch: main

View File

@ -8,6 +8,8 @@ pipeline:
- cd fly-cfg/rimgo
- /root/.fly/bin/flyctl deploy --detach --remote-only
secrets: [fly_api_token]
when:
branch: main
depends_on:
- build