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
54 changes: 54 additions & 0 deletions .github/workflows/cwbi-prod-build-push-api.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,54 @@
# This is a basic workflow to help you get started with Actions
name: Build API Image, Push to Prod

# Controls when the action will run. Invokes the workflow on push events but only for the main branch
on:
push:
branches: [cwbi-prod]
paths:
- .github/workflows/cwbi-prod-build-push-api.yml
- 'api/**'
workflow_dispatch:

env:
AWS_REGION: aws-us-gov #Change to reflect your Region

# Permission can be added at job level or workflow level
permissions:
id-token: write # This is required for requesting the JWT
contents: read # This is required for actions/checkout
jobs:
Build-Push-API-to-Prod:
runs-on: ubuntu-latest
steps:
- name: Git clone the repository
uses: actions/checkout@v4
- name: Configure AWS Credentials
uses: aws-actions/configure-aws-credentials@v4
with:
aws-region: us-gov-west-1
role-to-assume: arn:aws-us-gov:iam::648157167324:role/github-actions-ecr-cumulus
output-credentials: true
# Hello from AWS: WhoAmI
- name: Sts GetCallerIdentity
run: |
aws sts get-caller-identity
- name: Login to Amazon ECR
id: login-ecr
uses: aws-actions/amazon-ecr-login@v2
with:
mask-password: 'true'
- name: Build Image; Push to ECR
env:
ECR_REGISTRY: ${{ steps.login-ecr.outputs.registry }}
ECR_REPOSITORY: cumulus-api
IMAGE_TAG: latest
run: |
docker build api \
--tag $ECR_REGISTRY/$ECR_REPOSITORY:$IMAGE_TAG \
--tag $ECR_REGISTRY/$ECR_REPOSITORY:prod
docker push $ECR_REGISTRY/$ECR_REPOSITORY:$IMAGE_TAG
docker push $ECR_REGISTRY/$ECR_REPOSITORY:prod
- name: ECR Logout
if: always()
run: docker logout ${{ steps.login-ecr.outputs.registry }}
54 changes: 54 additions & 0 deletions .github/workflows/cwbi-prod-build-push-geoproc.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,54 @@
# This is a basic workflow to help you get started with Actions
name: Build Geoprocess Image, Push to Prod

# Controls when the action will run. Invokes the workflow on push events but only for the main branch
on:
push:
branches: [cwbi-prod]
paths:
- .github/workflows/cwbi-prod-build-push-geoproc.yml
- 'async_geoprocess/**'
workflow_dispatch:

env:
AWS_REGION: aws-us-gov #Change to reflect your Region

# Permission can be added at job level or workflow level
permissions:
id-token: write # This is required for requesting the JWT
contents: read # This is required for actions/checkout
jobs:
Build-Push-GeoProc-to-Prod:
runs-on: ubuntu-latest
steps:
- name: Git clone the repository
uses: actions/checkout@v4
- name: Configure AWS Credentials
uses: aws-actions/configure-aws-credentials@v4
with:
aws-region: us-gov-west-1
role-to-assume: arn:aws-us-gov:iam::648157167324:role/github-actions-ecr-cumulus
output-credentials: true
# Hello from AWS: WhoAmI
- name: Sts GetCallerIdentity
run: |
aws sts get-caller-identity
- name: Login to Amazon ECR
id: login-ecr
uses: aws-actions/amazon-ecr-login@v2
with:
mask-password: 'true'
- name: Build Image; Push to ECR
env:
ECR_REGISTRY: ${{ steps.login-ecr.outputs.registry }}
ECR_REPOSITORY: cumulus-geoprocess
IMAGE_TAG: latest
run: |
docker build --build-arg GEOPROC_PACKAGE=main:geoproc async_geoprocess \
--tag $ECR_REGISTRY/$ECR_REPOSITORY:$IMAGE_TAG \
--tag $ECR_REGISTRY/$ECR_REPOSITORY:prod
docker push $ECR_REGISTRY/$ECR_REPOSITORY:$IMAGE_TAG
docker push $ECR_REGISTRY/$ECR_REPOSITORY:prod
- name: ECR Logout
if: always()
run: docker logout ${{ steps.login-ecr.outputs.registry }}
54 changes: 54 additions & 0 deletions .github/workflows/cwbi-prod-build-push-listener.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,54 @@
#This is a basic workflow to help you get started with Actions
name: Build Listener Image, Push to Prod

# Controls when the action will run. Invokes the workflow on push events but only for the main branch
on:
push:
branches: [cwbi-prod]
paths:
- .github/workflows/cwbi-prod-build-push-listener.yml
- 'async_listener/**'
workflow_dispatch:

env:
AWS_REGION: aws-us-gov #Change to reflect your Region

# Permission can be added at job level or workflow level
permissions:
id-token: write # This is required for requesting the JWT
contents: read # This is required for actions/checkout
jobs:
Build-Push-Listener-to-Prod:
runs-on: ubuntu-latest
steps:
- name: Git clone the repository
uses: actions/checkout@v4
- name: Configure AWS Credentials
uses: aws-actions/configure-aws-credentials@v4
with:
aws-region: us-gov-west-1
role-to-assume: arn:aws-us-gov:iam::648157167324:role/github-actions-ecr-cumulus
output-credentials: true
# Hello from AWS: WhoAmI
- name: Sts GetCallerIdentity
run: |
aws sts get-caller-identity
- name: Login to Amazon ECR
id: login-ecr
uses: aws-actions/amazon-ecr-login@v2
with:
mask-password: 'true'
- name: Build Image; Push to ECR
env:
ECR_REGISTRY: ${{ steps.login-ecr.outputs.registry }}
ECR_REPOSITORY: cumulus-listener
IMAGE_TAG: latest
run: |
docker build async_listener \
--tag $ECR_REGISTRY/$ECR_REPOSITORY:$IMAGE_TAG \
--tag $ECR_REGISTRY/$ECR_REPOSITORY:prod
docker push $ECR_REGISTRY/$ECR_REPOSITORY:$IMAGE_TAG
docker push $ECR_REGISTRY/$ECR_REPOSITORY:prod
- name: ECR Logout
if: always()
run: docker logout ${{ steps.login-ecr.outputs.registry }}
54 changes: 54 additions & 0 deletions .github/workflows/cwbi-prod-build-push-migration.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,54 @@
# This is a basic workflow to help you get started with Actions
name: Build Migration Image, Push to Prod

# Controls when the action will run. Invokes the workflow on push events but only for the main branch
on:
push:
branches: [cwbi-prod]
paths:
- .github/workflows/cwbi-prod-build-push-migration.yml
- 'sql/**'
workflow_dispatch:

env:
AWS_REGION: aws-us-gov #Change to reflect your Region

# Permission can be added at job level or workflow level
permissions:
id-token: write # This is required for requesting the JWT
contents: read # This is required for actions/checkout
jobs:
Build-Push-Migration-to-Prod:
runs-on: ubuntu-latest
steps:
- name: Git clone the repository
uses: actions/checkout@v4
- name: Configure AWS Credentials
uses: aws-actions/configure-aws-credentials@v4
with:
aws-region: us-gov-west-1
role-to-assume: arn:aws-us-gov:iam::648157167324:role/github-actions-ecr-cumulus
output-credentials: true
# Hello from AWS: WhoAmI
- name: Sts GetCallerIdentity
run: |
aws sts get-caller-identity
- name: Login to Amazon ECR
id: login-ecr
uses: aws-actions/amazon-ecr-login@v2
with:
mask-password: 'true'
- name: Build Image; Push to ECR
env:
ECR_REGISTRY: ${{ steps.login-ecr.outputs.registry }}
ECR_REPOSITORY: cumulus-migration
IMAGE_TAG: latest
run: |
docker build sql \
--tag $ECR_REGISTRY/$ECR_REPOSITORY:$IMAGE_TAG \
--tag $ECR_REGISTRY/$ECR_REPOSITORY:prod
docker push $ECR_REGISTRY/$ECR_REPOSITORY:$IMAGE_TAG
docker push $ECR_REGISTRY/$ECR_REPOSITORY:prod
- name: ECR Logout
if: always()
run: docker logout ${{ steps.login-ecr.outputs.registry }}
54 changes: 54 additions & 0 deletions .github/workflows/cwbi-prod-build-push-packager.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,54 @@
#This is a basic workflow to help you get started with Actions
name: Build Packager Image, Push to Prod

# Controls when the action will run. Invokes the workflow on push events but only for the main branch
on:
push:
branches: [cwbi-prod]
paths:
- .github/workflows/cwbi-prod-build-push-packager.yml
- 'async_packager/**'
workflow_dispatch:

env:
AWS_REGION: aws-us-gov #Change to reflect your Region

# Permission can be added at job level or workflow level
permissions:
id-token: write # This is required for requesting the JWT
contents: read # This is required for actions/checkout
jobs:
Build-Push-Packager-to-Prod:
runs-on: ubuntu-latest
steps:
- name: Git clone the repository
uses: actions/checkout@v4
- name: Configure AWS Credentials
uses: aws-actions/configure-aws-credentials@v4
with:
aws-region: us-gov-west-1
role-to-assume: arn:aws-us-gov:iam::648157167324:role/github-actions-ecr-cumulus
output-credentials: true
# Hello from AWS: WhoAmI
- name: Sts GetCallerIdentity
run: |
aws sts get-caller-identity
- name: Login to Amazon ECR
id: login-ecr
uses: aws-actions/amazon-ecr-login@v2
with:
mask-password: 'true'
- name: Build Image; Push to ECR
env:
ECR_REGISTRY: ${{ steps.login-ecr.outputs.registry }}
ECR_REPOSITORY: cumulus-packager
IMAGE_TAG: latest
run: |
docker build async_packager \
--tag $ECR_REGISTRY/$ECR_REPOSITORY:$IMAGE_TAG \
--tag $ECR_REGISTRY/$ECR_REPOSITORY:prod
docker push $ECR_REGISTRY/$ECR_REPOSITORY:$IMAGE_TAG
docker push $ECR_REGISTRY/$ECR_REPOSITORY:prod
- name: ECR Logout
if: always()
run: docker logout ${{ steps.login-ecr.outputs.registry }}
54 changes: 54 additions & 0 deletions .github/workflows/cwbi-prod-build-push-pg_featureserv.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,54 @@
#This is a basic workflow to help you get started with Actions
name: Build pg_featureserv Image, Push to Prod

# Controls when the action will run. Invokes the workflow on push events but only for the main branch
on:
push:
branches: [cwbi-prod]
paths:
- .github/workflows/cwbi-prod-build-push-pg_featureserv.yml
- 'pg_featureserv/**'
workflow_dispatch:

env:
AWS_REGION: aws-us-gov #Change to reflect your Region

# Permission can be added at job level or workflow level
permissions:
id-token: write # This is required for requesting the JWT
contents: read # This is required for actions/checkout
jobs:
Build-Push-pg_featureserv-to-Prod:
runs-on: ubuntu-latest
steps:
- name: Git clone the repository
uses: actions/checkout@v4
- name: Configure AWS Credentials
uses: aws-actions/configure-aws-credentials@v4
with:
aws-region: us-gov-west-1
role-to-assume: arn:aws-us-gov:iam::648157167324:role/github-actions-ecr-cumulus
output-credentials: true
# Hello from AWS: WhoAmI
- name: Sts GetCallerIdentity
run: |
aws sts get-caller-identity
- name: Login to Amazon ECR
id: login-ecr
uses: aws-actions/amazon-ecr-login@v2
with:
mask-password: 'true'
- name: Build Image; Push to ECR
env:
ECR_REGISTRY: ${{ steps.login-ecr.outputs.registry }}
ECR_REPOSITORY: cumulus-pg_featureserv
IMAGE_TAG: latest
run: |
docker build pg_featureserv \
--tag $ECR_REGISTRY/$ECR_REPOSITORY:$IMAGE_TAG \
--tag $ECR_REGISTRY/$ECR_REPOSITORY:prod
docker push $ECR_REGISTRY/$ECR_REPOSITORY:$IMAGE_TAG
docker push $ECR_REGISTRY/$ECR_REPOSITORY:prod
- name: ECR Logout
if: always()
run: docker logout ${{ steps.login-ecr.outputs.registry }}
Loading