Merge pull request #797 from i-dot-ai/bugfix/ignore-ai-content-from-a… #43
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
name: _cicd (build and release entry) | |
on: | |
push: | |
branches: | |
- main | |
release: | |
types: | |
- released | |
workflow_dispatch: | |
inputs: | |
commit_hash: | |
description: 'The SHA of the Git commit to use' | |
required: false | |
default: refs/heads/main | |
core_repo_reference: | |
description: 'The SHA to set the core repo to' | |
required: false | |
default: refs/heads/main | |
config_repo_reference: | |
description: 'The SHA to set the config repo to' | |
required: false | |
default: refs/heads/main | |
permissions: | |
contents: read | |
jobs: | |
release-dev: | |
if: ${{ false }} | |
# if: github.event_name == 'workflow_dispatch' | |
uses: i-dot-ai/redbox/.github/workflows/build-and-release.yml@main | |
with: | |
environment: dev | |
core_infra_repo_reference: ${{ inputs.core_repo_reference }} | |
config_repo_reference: ${{ inputs.config_repo_reference }} | |
commit_hash: ${{ inputs.commit_hash }} | |
secrets: inherit | |
release-preprod: | |
if: ${{ false }} | |
# if: github.event_name == 'push' && github.ref_name == 'main' | |
uses: i-dot-ai/redbox/.github/workflows/build-and-release.yml@main | |
with: | |
environment: preprod | |
core_infra_repo_reference: 'refs/heads/main' | |
config_repo_reference: 'refs/heads/main' | |
commit_hash: ${{ github.sha }} | |
secrets: inherit | |
release-prod: | |
if: ${{ false }} | |
# if: github.event_name == 'release' | |
uses: i-dot-ai/redbox/.github/workflows/build-and-release.yml@main | |
with: | |
environment: prod | |
core_infra_repo_reference: 'refs/heads/main' | |
config_repo_reference: 'refs/heads/main' | |
commit_hash: ${{ github.sha }} | |
secrets: inherit |