diff --git a/.github/workflows/cut-release-common.yml b/.github/workflows/cut-release-common.yml index 6f1b2fa..a12d37c 100644 --- a/.github/workflows/cut-release-common.yml +++ b/.github/workflows/cut-release-common.yml @@ -24,6 +24,11 @@ on: required: false type: boolean default: false + env: + description: 'Deployment namespace/environment' + required: false + type: string + default: 'quai-sandbox' secrets: GH_PAT: description: 'needed for github login' @@ -252,7 +257,7 @@ jobs: DOCKER_BUILD_ARGS: ${{ secrets.DOCKER_BUILD_ARGS }} BUILD_ARGS: ${{ secrets.BUILD_ARGS }} with: - env: quai-sandbox + env: ${{ inputs.env }} update_version_command: npm version prerelease --preid=rc --no-git-tag-version branch: ${{ needs.cutReleaseCandidateJS.outputs.branch }} rails: '[[ "$VERSION" =~ "rc" ]]' @@ -273,7 +278,7 @@ jobs: DOCKER_BUILD_ARGS: ${{ secrets.DOCKER_BUILD_ARGS }} BUILD_ARGS: ${{ secrets.BUILD_ARGS }} with: - env: quai-sandbox + env: ${{ inputs.env }} update_version_command: npm version prerelease --preid=rc --no-git-tag-version branch: ${{ needs.cutReleaseCandidateTS.outputs.branch }} rails: '[[ "$VERSION" =~ "rc" ]]' diff --git a/.github/workflows/deploy-dev-common.yml b/.github/workflows/deploy-dev-common.yml index f108b9d..149dc7a 100644 --- a/.github/workflows/deploy-dev-common.yml +++ b/.github/workflows/deploy-dev-common.yml @@ -19,6 +19,10 @@ on: required: false type: boolean default: false + env: + required: false + type: string + default: quai-dev secrets: GH_PAT: description: 'needed for github login' @@ -82,7 +86,7 @@ jobs: DOCKER_BUILD_ARGS: ${{ secrets.DOCKER_BUILD_ARGS }} BUILD_ARGS: ${{ secrets.BUILD_ARGS }} with: - env: quai-dev + env: ${{ inputs.env }} update_version_command: npm version prerelease --preid=pre --no-git-tag-version update_version: true cloud_deploy: false @@ -101,7 +105,7 @@ jobs: DOCKER_BUILD_ARGS: ${{ secrets.DOCKER_BUILD_ARGS }} BUILD_ARGS: ${{ secrets.BUILD_ARGS }} with: - env: quai-dev + env: ${{ inputs.env }} update_version_command: npm version prerelease --preid=pre --no-git-tag-version update_version: true cloud_deploy: false @@ -118,7 +122,7 @@ jobs: GH_PAT: ${{ secrets.GH_PAT }} KUBE_CONFIG: ${{ secrets.KUBE_CONFIG }} with: - env: quai-dev + env: ${{ inputs.env }} awk: awk -F. '{print $1"."$2"."$3"."$4+1}' update_version: true cloud_deploy: false @@ -132,7 +136,7 @@ jobs: GH_PAT: ${{ secrets.GH_PAT }} KUBE_CONFIG: ${{ secrets.KUBE_CONFIG }} with: - env: quai-dev + env: ${{ inputs.env }} awk: awk -F. '{print $1"."$2"."$3"."$4+1}' update_version: true cloud_deploy: ${{ inputs.cloud_deploy }} diff --git a/.github/workflows/deploy-prod-common.yml b/.github/workflows/deploy-prod-common.yml index 13ed85b..8d8fd9d 100644 --- a/.github/workflows/deploy-prod-common.yml +++ b/.github/workflows/deploy-prod-common.yml @@ -19,6 +19,10 @@ on: required: false type: boolean default: false + env: + required: false + type: string + default: quai-prod secrets: GH_PAT: description: 'needed for github login' @@ -164,7 +168,7 @@ jobs: DOCKER_BUILD_ARGS: ${{ secrets.DOCKER_BUILD_ARGS }} BUILD_ARGS: ${{ secrets.BUILD_ARGS }} with: - env: quai-prod + env: ${{ inputs.env }} update_version_command: npm version prepatch --preid=rc --no-git-tag-version rails: '[[ ! "$VERSION" =~ "rc" ]] && [[ ! "$VERSION" =~ "pre" ]]' update_version: true @@ -183,7 +187,7 @@ jobs: DOCKER_BUILD_ARGS: ${{ secrets.DOCKER_BUILD_ARGS }} BUILD_ARGS: ${{ secrets.BUILD_ARGS }} with: - env: quai-prod + env: ${{ inputs.env }} update_version_command: npm version prepatch --preid=rc --no-git-tag-version rails: '[[ ! "$VERSION" =~ "rc" ]] && [[ ! "$VERSION" =~ "pre" ]]' update_version: true diff --git a/.github/workflows/deploy-sandbox-common.yml b/.github/workflows/deploy-sandbox-common.yml index 6099efd..833cdd5 100644 --- a/.github/workflows/deploy-sandbox-common.yml +++ b/.github/workflows/deploy-sandbox-common.yml @@ -19,6 +19,10 @@ on: required: false type: boolean default: false + env: + required: false + type: string + default: quai-sandbox secrets: GH_PAT: description: 'needed for github login' @@ -72,7 +76,7 @@ jobs: DOCKER_BUILD_ARGS: ${{ secrets.DOCKER_BUILD_ARGS }} BUILD_ARGS: ${{ secrets.BUILD_ARGS }} with: - env: quai-sandbox + env: ${{ inputs.env }} update_version_command: npm version prerelease --preid=rc --no-git-tag-version rails: '[[ ! "$VERSION" =~ "pre" ]]' update_version: true @@ -92,7 +96,7 @@ jobs: DOCKER_BUILD_ARGS: ${{ secrets.DOCKER_BUILD_ARGS }} BUILD_ARGS: ${{ secrets.BUILD_ARGS }} with: - env: quai-sandbox + env: ${{ inputs.env }} update_version_command: npm version prerelease --preid=rc --no-git-tag-version rails: '[[ ! "$VERSION" =~ "pre" ]]' update_version: true