test build discord

This commit is contained in:
DESKTOP-2S5P7D1\Windows 10 2024-12-07 09:31:03 +07:00
parent e295c13ba3
commit e4343b61ac

View file

@ -1,5 +1,5 @@
name: release
run-name: Release by ${{ github.actor }}
run-name: release ${{ github.actor }}
on:
push:
tags:
@ -8,16 +8,16 @@ on:
env:
REGISTRY: docker.frappet.com
IMAGE_NAME: ehr/bma-ehr-log-backup
DEPLOY_HOST: 49.0.91.80
DEPLOY_HOST: frappet.com
COMPOSE_PATH: /home/frappet/docker/bma/bma-ehr-log-backup
DISCORD_WEBHOOK: https://discord.com/api/webhooks/1313895135121248377/ph4LEfzvrNKyPKouCfHkKx73E323sAc--f3aIM2N0pvS-lQaGdBOg-yHxSNNFxfvjob7
jobs:
release:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
# skip Set up QEMU because it fail on act and container
# Gen Version try to get version from tag or inut
- name: Set output tags
id: vars
run: echo "tag=${GITHUB_REF#refs/*/}" >> $GITHUB_OUTPUT
@ -83,7 +83,7 @@ jobs:
"timestamp": "'$(date -u +%Y-%m-%dT%H:%M:%SZ)'"
}]
}' \
${{ env.DISCORD_WEBHOOK }}
${{ secrets.DISCORD_WEBHOOK }}
- name: Notify Discord Failure
if: failure()
@ -102,4 +102,4 @@ jobs:
"timestamp": "'$(date -u +%Y-%m-%dT%H:%M:%SZ)'"
}]
}' \
${{ env.DISCORD_WEBHOOK }}
${{ secrets.DISCORD_WEBHOOK }}