fix deploy.yml: accept push events, check IMAGE_TAG var
This commit is contained in:
parent
da9b4716c2
commit
7dc285a677
1 changed files with 6 additions and 1 deletions
|
|
@ -1,7 +1,12 @@
|
|||
when:
|
||||
- event: manual
|
||||
- event: [manual, push]
|
||||
|
||||
steps:
|
||||
- name: check-vars
|
||||
image: alpine
|
||||
commands:
|
||||
- "[ -n \"$IMAGE_TAG\" ] || (echo 'IMAGE_TAG not set, skipping deploy'; exit 78)"
|
||||
|
||||
- name: deploy
|
||||
image: bitnami/kubectl:1.32
|
||||
commands:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue