Merge branch 'main' into bugfix/code-change4john
This commit is contained in:
commit
10346ee59e
2 changed files with 55 additions and 4 deletions
27
.github/workflows/web-deploy-nonprod.yml
vendored
27
.github/workflows/web-deploy-nonprod.yml
vendored
|
|
@ -27,9 +27,30 @@ jobs:
|
|||
steps:
|
||||
- name: Check secrets present
|
||||
run: |
|
||||
echo "User is set: ${{ secrets.DOCKERHUB_USER != '' }}"
|
||||
echo "Token is set: ${{ secrets.DOCKERHUB_TOKEN != '' }}"
|
||||
echo "Environment: ${{ inputs.environments }}"
|
||||
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 }}
|
||||
|
|
|
|||
32
.github/workflows/web-deploy-prod.yml
vendored
32
.github/workflows/web-deploy-prod.yml
vendored
|
|
@ -5,7 +5,7 @@ on:
|
|||
environments:
|
||||
type: string
|
||||
description: An optional list of environments to deploy to.
|
||||
default: '["prod"]'
|
||||
default: 'prod'
|
||||
workflow_type:
|
||||
type: string
|
||||
description: An optional string for workflow types.
|
||||
|
|
@ -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