test on comment
Some checks failed
CI / build-and-test (pull_request) Failing after 4m35s

This commit is contained in:
Tobias Klemp
2026-01-01 18:39:55 +01:00
parent 735316a24b
commit 679972a604

View File

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