Skip to content

Commit

Permalink
added OPS settings
Browse files Browse the repository at this point in the history
  • Loading branch information
cqbanh committed Mar 13, 2024
1 parent 8ae3631 commit 5e0283e
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 8 deletions.
17 changes: 9 additions & 8 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ on:
options:
- SIT
- UAT
- OPS
commit:
type: string
description: Custom commit hash
Expand Down Expand Up @@ -75,7 +76,7 @@ jobs:
TARGET_ENV=${{ github.event.inputs.venue }}
- name: Bump alpha version
if: github.ref == 'refs/heads/develop' && github.event_name != 'workflow_dispatch'
if: github.ref == 'refs/heads/develop' && github.event_name != 'workflow_dispatch' && github.event_name != 'pull_request'
run: |
TAG=$(bumpver show -e | awk -F= '$1 == "TAG" {print $2};')
if [ $TAG == 'final' ]; then
Expand All @@ -86,13 +87,13 @@ jobs:
fi
echo "TARGET_ENV=SIT" >> $GITHUB_ENV
- name: Bump rc version
if: startsWith(github.ref, 'refs/heads/release/') && github.event_name != 'workflow_dispatch'
if: startsWith(github.ref, 'refs/heads/release/') && github.event_name != 'workflow_dispatch' && github.event_name != 'pull_request'
run: |
bumpver --tag rc --tag-num
bumpver update -f --tag rc --tag-num
echo "TARGET_ENV=UAT" >> $GITHUB_ENV
- name: Release version
if: github.ref == 'refs/heads/main' && github.event_name != 'workflow_dispatch'
run: bumpver --tag final
if: github.ref == 'refs/heads/main' && github.event_name != 'workflow_dispatch' && github.event_name != 'pull_request'
run: bumpver update -f --tag final
# -- Build --
- name: Show bumpver contents
run: cat bumpver.toml
Expand Down Expand Up @@ -120,9 +121,9 @@ jobs:
environment:
name: ${{ needs.build.outputs.deploy_env }}
if: |
github.ref == 'refs/heads/develop' ||
github.ref == 'refs/heads/main' ||
startsWith(github.ref, 'refs/heads/release') ||
(github.ref == 'refs/heads/develop' && github.event_name != 'pull_request') ||
(github.ref == 'refs/heads/main' && github.event_name != 'pull_request') ||
(startsWith(github.ref, 'refs/heads/release') && github.event_name != 'pull_request') ||
github.event_name == 'workflow_dispatch'
steps:
- name: Configure AWS credentials
Expand Down
3 changes: 3 additions & 0 deletions terraform/environments/ops.env
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
export REGION=us-west-2
export BUCKET=podaac-services-ops-terraform
export TF_VAR_sds_pcm_release_tag=pcm-v5.0.0-pge-v5.1.1

0 comments on commit 5e0283e

Please sign in to comment.