This commit is contained in:
@@ -10,7 +10,7 @@ on:
|
||||
- 'composer.json'
|
||||
- 'composer.lock'
|
||||
- '.gitea/workflows/build-docker.yml'
|
||||
- 'version'
|
||||
- 'version' # Change this file to force rebuild
|
||||
|
||||
jobs:
|
||||
build:
|
||||
@@ -43,14 +43,14 @@ jobs:
|
||||
docker push "$IMAGE:${{ gitea.sha }}"
|
||||
docker push "$IMAGE:latest"
|
||||
|
||||
- name: Trigger deployment
|
||||
run: |
|
||||
curl --fail-with-body \
|
||||
-X POST \
|
||||
-H "Content-Type: application/json" \
|
||||
-d '{
|
||||
"image": "'"$IMAGE:${{ gitea.sha }}"'",
|
||||
"commit": "${{ gitea.sha }}",
|
||||
"repository": "${{ gitea.repository }}"
|
||||
}' \
|
||||
"${{ secrets.DEPLOY_WEBHOOK_URL }}"
|
||||
# - name: Trigger deployment
|
||||
# run: |
|
||||
# curl --fail-with-body \
|
||||
# -X POST \
|
||||
# -H "Content-Type: application/json" \
|
||||
# -d '{
|
||||
# "image": "'"$IMAGE:${{ gitea.sha }}"'",
|
||||
# "commit": "${{ gitea.sha }}",
|
||||
# "repository": "${{ gitea.repository }}"
|
||||
# }' \
|
||||
# "${{ secrets.DEPLOY_WEBHOOK_URL }}"
|
||||
|
||||
Reference in New Issue
Block a user