set auto build

This commit is contained in:
Kittapath 2024-01-11 12:15:04 +07:00
parent bb875da944
commit fd5e24ff33

View file

@ -1,5 +1,5 @@
name: release-dev
run-name: release-dev ${{ github.actor }}
name: release-test
run-name: release-test ${{ github.actor }}
on:
# push:
# tags:
@ -13,11 +13,10 @@ env:
IMAGE_NAME: ehr/bma-ehr-user
DEPLOY_HOST: frappet.com
COMPOSE_PATH: /home/frappet/docker/bma-ehr-user
TOKEN_LINE: uxuK5hDzS2DsoC5piJBrWRLiz8GgY7iMZZldOWsDDF0
jobs:
# act workflow_dispatch -W .github/workflows/release.yaml --input IMAGE_VER=test-v6.1 -s DOCKER_USER=sorawit -s DOCKER_PASS=P@ssword -s SSH_PASSWORD=P@ssw0rd
release-dev:
release-test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
@ -69,7 +68,7 @@ jobs:
- uses: snow-actions/line-notify@v1.1.0
if: success()
with:
access_token: ${{ env.TOKEN_LINE }}
access_token: ${{ secrets.TOKEN_LINE }}
message: |
-Success✅✅✅
Image: ${{env.IMAGE_NAME}}
@ -78,7 +77,7 @@ jobs:
- uses: snow-actions/line-notify@v1.1.0
if: failure()
with:
access_token: ${{ env.TOKEN_LINE }}
access_token: ${{ secrets.TOKEN_LINE }}
message: |
-Failure❌❌❌
Image: ${{env.IMAGE_NAME}}