Update web-deploy-prod.yml
This commit is contained in:
parent
1329835057
commit
8b183b7b7d
1 changed files with 30 additions and 0 deletions
30
.github/workflows/web-deploy-prod.yml
vendored
30
.github/workflows/web-deploy-prod.yml
vendored
|
|
@ -21,6 +21,36 @@ on:
|
|||
COOLIFY_WEBHOOK: {}
|
||||
COOLIFY_TOKEN: {}
|
||||
jobs:
|
||||
check-inputs:
|
||||
runs-on: 'ubuntu-latest'
|
||||
environment: ${{ inputs.environments }}
|
||||
steps:
|
||||
- name: Check secrets present
|
||||
run: |
|
||||
if [[ -z "${{ secrets.COOLIFY_WEBHOOK }}" ]]; then
|
||||
echo "COOLIFY_WEBHOOK secret is empty or missing"
|
||||
exit 1
|
||||
else
|
||||
echo "COOLIFY_WEBHOOK secret is set"
|
||||
fi
|
||||
if [[ -z "${{ secrets.COOLIFY_TOKEN }}" ]]; then
|
||||
echo "COOLIFY_TOKEN secret is empty or missing"
|
||||
exit 1
|
||||
else
|
||||
echo "COOLIFY_TOKEN secret is set"
|
||||
fi
|
||||
if [[ -z "${{ secrets.DOCKERHUB_USER }}" ]]; then
|
||||
echo "DOCKERHUB_USER secret is empty or missing"
|
||||
exit 1
|
||||
else
|
||||
echo "DOCKERHUB_USER secret is set"
|
||||
fi
|
||||
if [[ -z "${{ secrets.DOCKERHUB_TOKEN }}" ]]; then
|
||||
echo "DOCKERHUB_TOKEN secret is empty or missing"
|
||||
exit 1
|
||||
else
|
||||
echo "DOCKERHUB_TOKEN secret is set"
|
||||
fi
|
||||
build:
|
||||
if: inputs.workflow_type == 'release'
|
||||
environment: ${{ inputs.environments }}
|
||||
|
|
|
|||
Loading…
Reference in a new issue