Skip to content

Commit

Permalink
wip
Browse files Browse the repository at this point in the history
  • Loading branch information
dimaryaz committed Feb 2, 2024
1 parent c4d82a4 commit 926862f
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 8 deletions.
7 changes: 0 additions & 7 deletions .github/workflows/deploy-lambdas.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@ on:
branches:
- ci_deploy_lambdas
paths:
# - '.github/workflows/deploy-lambdas.yml'
- 'lambdas/**'

jobs:
Expand Down Expand Up @@ -88,19 +87,13 @@ jobs:
with:
role-to-assume: arn:aws:iam::730278974607:role/github/GitHub-Quilt
aws-region: us-east-1
- name: Login to Prod ECR
id: login-prod-ecr
uses: aws-actions/amazon-ecr-login@v2
- name: Push Docker image to Prod ECR
run: ./lambdas/upload_ecr.sh 730278974607 quiltdata/lambdas/${{ matrix.path }}:${{ github.sha }}
- name: Configure AWS credentials from GovCloud account
uses: aws-actions/configure-aws-credentials@v4
with:
role-to-assume: arn:aws-us-gov:iam::313325871032:role/github/GitHub-Quilt
aws-region: us-gov-east-1
- name: Login to GovCloud ECR
id: login-govcloud-ecr
uses: aws-actions/amazon-ecr-login@v2
- name: Push Docker image to GovCloud ECR
run: ./lambdas/upload_ecr.sh 313325871032 quiltdata/lambdas/${{ matrix.path }}:${{ github.sha }}

2 changes: 1 addition & 1 deletion lambdas/upload_ecr.sh
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ error() {
account_id=$1
image_name=$2

regions=$(aws ec2 describe-regions --query "Regions[].{Name:RegionName}" --output text)
regions="us-east-1" # $(aws ec2 describe-regions --query "Regions[].{Name:RegionName}" --output text)

for region in $regions
do
Expand Down

0 comments on commit 926862f

Please sign in to comment.