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 name: release-test
run-name: release-dev ${{ github.actor }} run-name: release-test ${{ github.actor }}
on: on:
# push: # push:
# tags: # tags:
@ -13,11 +13,10 @@ env:
IMAGE_NAME: ehr/bma-ehr-user IMAGE_NAME: ehr/bma-ehr-user
DEPLOY_HOST: frappet.com DEPLOY_HOST: frappet.com
COMPOSE_PATH: /home/frappet/docker/bma-ehr-user COMPOSE_PATH: /home/frappet/docker/bma-ehr-user
TOKEN_LINE: uxuK5hDzS2DsoC5piJBrWRLiz8GgY7iMZZldOWsDDF0
jobs: 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 # 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 runs-on: ubuntu-latest
steps: steps:
- uses: actions/checkout@v3 - uses: actions/checkout@v3
@ -69,7 +68,7 @@ jobs:
- uses: snow-actions/line-notify@v1.1.0 - uses: snow-actions/line-notify@v1.1.0
if: success() if: success()
with: with:
access_token: ${{ env.TOKEN_LINE }} access_token: ${{ secrets.TOKEN_LINE }}
message: | message: |
-Success✅✅✅ -Success✅✅✅
Image: ${{env.IMAGE_NAME}} Image: ${{env.IMAGE_NAME}}
@ -78,7 +77,7 @@ jobs:
- uses: snow-actions/line-notify@v1.1.0 - uses: snow-actions/line-notify@v1.1.0
if: failure() if: failure()
with: with:
access_token: ${{ env.TOKEN_LINE }} access_token: ${{ secrets.TOKEN_LINE }}
message: | message: |
-Failure❌❌❌ -Failure❌❌❌
Image: ${{env.IMAGE_NAME}} Image: ${{env.IMAGE_NAME}}