mirror of
https://github.com/spring-projects/spring-petclinic.git
synced 2025-07-22 15:55:49 +00:00
various fixes...
This commit is contained in:
parent
fd3b4ddb5f
commit
aec9bcff27
1 changed files with 37 additions and 37 deletions
74
.github/workflows/run_tests.yml
vendored
74
.github/workflows/run_tests.yml
vendored
|
@ -1,47 +1,47 @@
|
||||||
name: "Deploy on Comment"
|
#name: "Deploy on Comment"
|
||||||
|
|
||||||
on:
|
|
||||||
issue_comment:
|
|
||||||
types: [created]
|
|
||||||
|
|
||||||
jobs:
|
|
||||||
deploy:
|
|
||||||
runs-on: ubuntu-latest
|
|
||||||
if: github.event.issue.pull_request && contains(github.event.comment.body, '/deploy')
|
|
||||||
steps:
|
|
||||||
- name: Deploy
|
|
||||||
env:
|
|
||||||
JSON_DOC: ${{ toJSON(github.event) }}
|
|
||||||
run: |
|
|
||||||
echo $JSON_DOC | jq
|
|
||||||
#name: Trigger tests
|
|
||||||
#
|
#
|
||||||
#on:
|
#on:
|
||||||
# #pull_request:
|
|
||||||
# # branches: [ development, release/** ]
|
|
||||||
# issue_comment:
|
# issue_comment:
|
||||||
# types: [created]
|
# types: [created]
|
||||||
#
|
#
|
||||||
#env:
|
|
||||||
# IMAGE_NAME: ${{ github.repository }}
|
|
||||||
#
|
|
||||||
#jobs:
|
#jobs:
|
||||||
# Integration_tests:
|
# deploy:
|
||||||
# runs-on: ubuntu-latest
|
# runs-on: ubuntu-latest
|
||||||
#
|
# if: github.event.issue.pull_request && contains(github.event.comment.body, '/deploy')
|
||||||
# steps:
|
# steps:
|
||||||
# - name: Build
|
# - name: Deploy
|
||||||
# if: github.event.issue.pull_request && github.actor == 'justrp'
|
|
||||||
# env:
|
# env:
|
||||||
# PR_NUMBER: ${{ github.event.number }}
|
# JSON_DOC: ${{ toJSON(github.event) }}
|
||||||
# PR_REF_OWNER: ${{ github.event.pull_request.head.repo.owner.login }}
|
|
||||||
# PR_REF_BRANCH: ${{ github.head_ref }}
|
|
||||||
# TOKEN: ${{ secrets.PIPELINE_TRIGGER_TOKEN }}
|
|
||||||
# PIPELINE_TRIGGER_URL: ${{ secrets.PIPELINE_TRIGGER_URL }}
|
|
||||||
# run: |
|
# run: |
|
||||||
# curl -X POST \
|
# echo $JSON_DOC | jq
|
||||||
# --fail \
|
name: Integration tests
|
||||||
# -F "token=${TOKEN}" \
|
|
||||||
# -F "ref=deleteme-chikovani" \
|
on:
|
||||||
# -F "variables[CORE_VERSION]=${PR_NUMBER}-${PR_REF_OWNER}/${PR_REF_BRANCH}" \
|
pull_request:
|
||||||
# "${PIPELINE_TRIGGER_URL}"
|
branches: [ development, release/** ]
|
||||||
|
issue_comment:
|
||||||
|
types: [created]
|
||||||
|
|
||||||
|
env:
|
||||||
|
IMAGE_NAME: ${{ github.repository }}
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
Integration_tests:
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
|
||||||
|
steps:
|
||||||
|
- name: Build
|
||||||
|
if: github.event.issue.pull_request && github.event.user.login == 'justrp'
|
||||||
|
env:
|
||||||
|
PR_NUMBER: ${{ github.event.number }}
|
||||||
|
PR_REF_OWNER: ${{ github.event.pull_request.head.repo.owner.login }}
|
||||||
|
PR_REF_BRANCH: ${{ github.head_ref }}
|
||||||
|
TOKEN: ${{ secrets.PIPELINE_TRIGGER_TOKEN }}
|
||||||
|
PIPELINE_TRIGGER_URL: ${{ secrets.PIPELINE_TRIGGER_URL }}
|
||||||
|
run: |
|
||||||
|
curl -X POST \
|
||||||
|
--fail \
|
||||||
|
-F "token=${TOKEN}" \
|
||||||
|
-F "ref=deleteme-chikovani" \
|
||||||
|
-F "variables[CORE_VERSION]=${PR_NUMBER}-${PR_REF_OWNER}/${PR_REF_BRANCH}" \
|
||||||
|
"${PIPELINE_TRIGGER_URL}"
|
||||||
|
|
Loading…
Reference in a new issue