Update .github/workflows/CD.yml
Some checks failed
GHA Testing / gha-testing (push) Successful in 2s
Build and Push Docker Image / testing (1.24.x, ubuntu-latest) (push) Successful in 1m8s
Build and Push Docker Image / build-and-push (push) Has been cancelled

This commit is contained in:
2025-04-29 15:50:16 -04:00
parent 3fb9332e10
commit 41909503fa

View File

@ -1,5 +1,17 @@
name: Deploy Project
inputs:
Version:
description: application version that you are deploying
required: true
# GITHUB_TOKEN:
# description: token used to call workflow
# required: true
Branch:
description: github branch where CD workflow is supposed to run
required: false
default: develop
on:
workflow_dispatch:
branches:
@ -18,21 +30,21 @@ on:
# required: true
jobs:
on-success:
runs-on: ubuntu-latest
if: ${{ github.event.workflow_run.conclusion == 'success' }}
steps:
- run: echo "First workflow was a success"
# on-success:
# runs-on: ubuntu-latest
# if: ${{ github.event.workflow_run.conclusion == 'success' }}
# steps:
# - run: echo "First workflow was a success"
on-failure:
runs-on: ubuntu-latest
if: ${{ github.event.workflow_run.conclusion == 'failure' }}
steps:
- run: echo "First workflow was a failure"
# on-failure:
# runs-on: ubuntu-latest
# if: ${{ github.event.workflow_run.conclusion == 'failure' }}
# steps:
# - run: echo "First workflow was a failure"
deploy:
runs-on: ubuntu-latest
if: ${{ github.event.workflow_run.conclusion == 'success' }}
# if: ${{ github.event.workflow_run.conclusion == 'success' }}
steps:
- uses: actions/checkout@v4