Skip to content

Commit

Permalink
Merge pull request #5 from dominant-strategies/override-env
Browse files Browse the repository at this point in the history
add override-env for all common workflows
  • Loading branch information
robertlincecum authored Feb 9, 2024
2 parents f5d8a1d + 6040d03 commit 2284ba1
Show file tree
Hide file tree
Showing 4 changed files with 27 additions and 10 deletions.
9 changes: 7 additions & 2 deletions .github/workflows/cut-release-common.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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'
Expand Down Expand Up @@ -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" ]]'
Expand All @@ -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" ]]'
Expand Down
12 changes: 8 additions & 4 deletions .github/workflows/deploy-dev-common.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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'
Expand Down Expand Up @@ -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
Expand All @@ -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
Expand All @@ -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
Expand All @@ -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 }}
8 changes: 6 additions & 2 deletions .github/workflows/deploy-prod-common.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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'
Expand Down Expand Up @@ -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
Expand All @@ -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
Expand Down
8 changes: 6 additions & 2 deletions .github/workflows/deploy-sandbox-common.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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'
Expand Down Expand Up @@ -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
Expand All @@ -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
Expand Down

0 comments on commit 2284ba1

Please sign in to comment.