push version #8

Merged
mattdimegs merged 51 commits from bugfix/code-change4john into main 2025-06-11 23:01:08 +00:00
2 changed files with 55 additions and 4 deletions
Showing only changes of commit 10346ee59e - Show all commits

View file

@ -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 }}

View file

@ -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 }}