fix deploy.yml: accept push events, check IMAGE_TAG var

This commit is contained in:
Viktor Barzin 2026-03-15 23:58:09 +00:00
parent da9b4716c2
commit 7dc285a677
No known key found for this signature in database
GPG key ID: 0EB088298288D958

View file

@ -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: