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 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: on:
workflow_dispatch: workflow_dispatch:
branches: branches:
@ -18,21 +30,21 @@ on:
# required: true # required: true
jobs: jobs:
on-success: # on-success:
runs-on: ubuntu-latest # runs-on: ubuntu-latest
if: ${{ github.event.workflow_run.conclusion == 'success' }} # if: ${{ github.event.workflow_run.conclusion == 'success' }}
steps: # steps:
- run: echo "First workflow was a success" # - run: echo "First workflow was a success"
on-failure: # on-failure:
runs-on: ubuntu-latest # runs-on: ubuntu-latest
if: ${{ github.event.workflow_run.conclusion == 'failure' }} # if: ${{ github.event.workflow_run.conclusion == 'failure' }}
steps: # steps:
- run: echo "First workflow was a failure" # - run: echo "First workflow was a failure"
deploy: deploy:
runs-on: ubuntu-latest runs-on: ubuntu-latest
if: ${{ github.event.workflow_run.conclusion == 'success' }} # if: ${{ github.event.workflow_run.conclusion == 'success' }}
steps: steps:
- uses: actions/checkout@v4 - uses: actions/checkout@v4