Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 0 additions & 13 deletions .github/workflows/build-and-publish-all.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,20 +34,7 @@ permissions:
id-token: write
contents: read

env:
RELEASE_ENV: ${{ inputs.env || 'dev' }}
CONFIRM_RELEASE_ENV: ${{ inputs.confirm_env || 'dev' }}

jobs:
confirm_env:
runs-on: codebuild-bcda-app-${{github.run_id}}-${{github.run_attempt}}
steps:
- name: Confirm Env
if: ${{ env.RELEASE_ENV != env.CONFIRM_RELEASE_ENV }}
run: |
echo "Target deployment env ${{ env.RELEASE_ENV }} must match confirmed deployment env ${{ env.CONFIRM_RELEASE_ENV }}."
exit 1

build_and_publish_api:
uses: ./.github/workflows/build-and-publish-api.yml
with:
Expand Down
4 changes: 0 additions & 4 deletions .github/workflows/build-and-publish-api.yml
Original file line number Diff line number Diff line change
Expand Up @@ -53,10 +53,6 @@ jobs:
echo "Ref is not a tag; setting version to revision shorthand"
REV_SHORT=$(git rev-parse --short=8 HEAD)
echo "version=temp-$REV_SHORT" >> $GITHUB_OUTPUT
if [[ ${{ env.RELEASE_ENV }} != 'dev' && ${{ env.RELEASE_ENV }} != 'test' ]]; then
echo "Publishing non-tag versions to prod account is forbidden; exiting process"
exit 1
fi
fi
- name: Set ECR urls
run: |
Expand Down
4 changes: 0 additions & 4 deletions .github/workflows/build-and-publish-worker.yml
Original file line number Diff line number Diff line change
Expand Up @@ -44,10 +44,6 @@ jobs:
echo "Ref is not a tag; setting version to revision shorthand"
REV_SHORT=$(git rev-parse --short=8 HEAD)
echo "version=temp-$REV_SHORT" >> $GITHUB_OUTPUT
if [[ ${{ env.RELEASE_ENV }} != 'dev' && ${{ env.RELEASE_ENV }} != 'test' ]]; then
echo "Publishing non-tag versions to prod account is forbidden; exiting process"
exit 1
fi
fi
- name: Set ECR urls
run: |
Expand Down
Loading