mirror of
https://github.com/makayabou/asg-server.git
synced 2026-05-02 17:43:36 +02:00
[actions] add secondary deployment
This commit is contained in:
parent
0a71b45122
commit
43d9a363e9
27
.github/workflows/release.yml
vendored
27
.github/workflows/release.yml
vendored
@ -26,6 +26,11 @@ jobs:
|
|||||||
|
|
||||||
deploy:
|
deploy:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
|
permissions:
|
||||||
|
contents: read
|
||||||
|
deployments: write
|
||||||
|
environment: production
|
||||||
|
concurrency: production
|
||||||
needs:
|
needs:
|
||||||
- build
|
- build
|
||||||
|
|
||||||
@ -61,3 +66,25 @@ jobs:
|
|||||||
-var "app-config-b64=${{ secrets.APP_CONFIG_B64 }}" \
|
-var "app-config-b64=${{ secrets.APP_CONFIG_B64 }}" \
|
||||||
-var "app-env-json-b64=${{ secrets.APP_ENV_JSON_B64 }}" \
|
-var "app-env-json-b64=${{ secrets.APP_ENV_JSON_B64 }}" \
|
||||||
-var "memory-limit=${{ vars.MEMORY_LIMIT }}"
|
-var "memory-limit=${{ vars.MEMORY_LIMIT }}"
|
||||||
|
|
||||||
|
deploy-secondary:
|
||||||
|
needs: build
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
permissions:
|
||||||
|
contents: read
|
||||||
|
deployments: write
|
||||||
|
environment: production-secondary
|
||||||
|
concurrency: production
|
||||||
|
env:
|
||||||
|
DEPLOY_WEBHOOK_URL: ${{ secrets.DEPLOY_WEBHOOK_URL }}
|
||||||
|
steps:
|
||||||
|
- name: Trigger Deploy webhook
|
||||||
|
if: ${{ env.DEPLOY_WEBHOOK_URL != '' }}
|
||||||
|
run: |
|
||||||
|
curl -X POST "${DEPLOY_WEBHOOK_URL}" \
|
||||||
|
--fail \
|
||||||
|
--silent \
|
||||||
|
--max-time 10 \
|
||||||
|
--retry 3 \
|
||||||
|
--retry-delay 5 \
|
||||||
|
|| exit 1
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user