Update web-deploy-prod.yml

This commit is contained in:
Matt DiMeglio 2025-06-11 15:46:59 -04:00 committed by GitHub
parent 1329835057
commit 8b183b7b7d
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -21,6 +21,36 @@ on:
COOLIFY_WEBHOOK: {} COOLIFY_WEBHOOK: {}
COOLIFY_TOKEN: {} COOLIFY_TOKEN: {}
jobs: 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: build:
if: inputs.workflow_type == 'release' if: inputs.workflow_type == 'release'
environment: ${{ inputs.environments }} environment: ${{ inputs.environments }}