test build discord
This commit is contained in:
parent
a2d5cec4fe
commit
30c09a1ccb
1 changed files with 6 additions and 7 deletions
13
.github/workflows/release.yaml
vendored
13
.github/workflows/release.yaml
vendored
|
|
@ -1,5 +1,5 @@
|
|||
name: release-test
|
||||
run-name: release-test ${{ github.actor }}
|
||||
name: release
|
||||
run-name: release ${{ github.actor }}
|
||||
on:
|
||||
push:
|
||||
tags:
|
||||
|
|
@ -9,12 +9,11 @@ env:
|
|||
REGISTRY: docker.frappet.com
|
||||
IMAGE_NAME: ehr/bma-ehr-org-service
|
||||
DEPLOY_HOST: frappet.com
|
||||
# COMPOSE_PATH: /home/frappet/docker/bma-ehr
|
||||
COMPOSE_PATH: /home/frappet/docker/bma/bma-ehr-org
|
||||
DISCORD_WEBHOOK: https://discord.com/api/webhooks/1314422269245657098/mOzvDZbIC9YY2ydxBeUPqSJ6dxSiWFHLSY_Stxah92zio0csg4J49K2Pg-0B5AUea3WP
|
||||
|
||||
jobs:
|
||||
# act workflow_dispatch -W .github/workflows/release.yaml --input IMAGE_VER=latest -s DOCKER_USER=admin -s DOCKER_PASS=FPTadmin2357 -s SSH_PASSWORD=FPTadmin2357
|
||||
release-test:
|
||||
release:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/checkout@v3
|
||||
|
|
@ -85,7 +84,7 @@ jobs:
|
|||
"timestamp": "'$(date -u +%Y-%m-%dT%H:%M:%SZ)'"
|
||||
}]
|
||||
}' \
|
||||
${{ env.DISCORD_WEBHOOK }}
|
||||
${{ secrets.DISCORD_WEBHOOK }}
|
||||
|
||||
- name: Notify Discord Failure
|
||||
if: failure()
|
||||
|
|
@ -104,4 +103,4 @@ jobs:
|
|||
"timestamp": "'$(date -u +%Y-%m-%dT%H:%M:%SZ)'"
|
||||
}]
|
||||
}' \
|
||||
${{ env.DISCORD_WEBHOOK }}
|
||||
${{ secrets.DISCORD_WEBHOOK }}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue