-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #26 from teqbench/refactor/workflows
Removed old workflow files and added new ones.
- Loading branch information
Showing
6 changed files
with
77 additions
and
75 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
name: Build | ||
# TeqBench - CI Workflow - Manually initiate a CI workflow. | ||
|
||
on: | ||
workflow_dispatch: | ||
|
||
jobs: | ||
# This not the most optimal solution, however, as of 1/4/24, cannot limit the workflow_dispatch to a specific branch via the UI. | ||
# Also, this is extra code to copy/paste into other repo workflow files. Revisit at a later time to improve. | ||
validate-dispatch-inputs: | ||
name: Validate Dispatch Inputs | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Validate Main Branch Selection | ||
if: github.event_name == 'workflow_dispatch' && github.ref != 'refs/heads/main' | ||
run: | | ||
echo "This workflow can only be initiated using the 'main' branch." | ||
exit 1 | ||
build: | ||
name: Build | ||
needs: validate-dispatch-inputs | ||
uses: teqbench/teqbench.devops.githhub.workflows/.github/workflows/build-with-concurrency.yml@main | ||
secrets: inherit | ||
with: | ||
ci_type: 'build-manual' |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
name: CI | ||
# TeqBench - CI Workflow - PR merge initiates a CI workflow. | ||
|
||
on: | ||
pull_request: | ||
types: [closed] | ||
branches: | ||
- main | ||
|
||
jobs: | ||
ci: | ||
name: CI | ||
uses: teqbench/teqbench.devops.githhub.workflows/.github/workflows/build-with-concurrency.yml@main | ||
secrets: inherit |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
name: Release & Deploy | ||
# TeqBench - Release & Deploy Workflow - Manually initiate a release and deployment workflow. | ||
|
||
on: | ||
workflow_dispatch: | ||
inputs: | ||
# This not the most optimal solution, however, as of 1/4/24, no (apparent) way to share common workflow display input. | ||
# So, this is extra code to copy/paste into other repo workflow files. Revisit at a later time to improve; maybe use GitHub project | ||
# boards/tickets to initiate a release/deployment, no clear option yet. | ||
release_type: | ||
type: choice | ||
description: Release Type | ||
options: | ||
- MAJOR | ||
- MINOR | ||
- PATCH | ||
|
||
jobs: | ||
# This not the most optimal solution, however, as of 1/4/24, cannot limit the workflow_dispatch to a specific branch via the UI. | ||
# Also, this is extra code to copy/paste into other repo workflow files. Revisit at a later time to improve. | ||
validate-dispatch-inputs: | ||
name: Validate Dispatch Inputs | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Validate Main Branch Selection | ||
if: github.event_name == 'workflow_dispatch' && github.ref != 'refs/heads/main' | ||
run: | | ||
echo "This workflow can only be initiated using the 'main' branch." | ||
exit 1 | ||
release_deploy: | ||
name: Release & Deploy | ||
needs: validate-dispatch-inputs | ||
uses: teqbench/teqbench.devops.githhub.workflows/.github/workflows/release-deploy.yml@main | ||
secrets: inherit | ||
with: | ||
release_type: ${{ github.event.inputs.release_type }} |