Files
phoenix/.gitea/workflows/commentDeploy.yml
Tobias Klemp 679972a604
Some checks failed
CI / build-and-test (pull_request) Failing after 4m35s
test on comment
2026-01-01 18:39:55 +01:00

36 lines
1.1 KiB
YAML

name: ChatOps Deploy
on:
issue_comment:
types: [created]
jobs:
deploy:
# if: |
# github.event.issue.pull_request &&
# startsWith(github.event.comment.body, '/deploy') &&
# (github.event.comment.author_association == 'OWNER' ||
# github.event.comment.author_association == 'MEMBER')
runs-on: ubuntu-latest
steps:
- name: say hello
if: contains(github.event.comment.body, '/deploy') # check the comment if it contains the keywords
run: |
echo say hello
# - name: Get tag safe branch name
# id: branch_name
# uses: ./.github/actions/getTagSafeRef
# - name: Build and push image
# id: docker_build
# uses: ./.github/actions/buildDockerImage
# with:
# tag: ${{ steps.branch_name.outputs.branch_name }}
# - name: Deploy application
# uses: ./.github/actions/deploy
# with:
# project_name: ${{ steps.branch_name.outputs.branch_name }}
# url: '${{ steps.branch_name.outputs.branch_name }}.phoenix.klemp.local'
# image_url: ${{ steps.docker_build.outputs.image_url }}