Skip to content

Commit

Permalink
test build
Browse files Browse the repository at this point in the history
  • Loading branch information
nl0 committed Jun 18, 2024
1 parent 488e026 commit 4a9f594
Showing 1 changed file with 16 additions and 15 deletions.
31 changes: 16 additions & 15 deletions .github/workflows/deploy-lambdas.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,8 @@ name: Deploy lambdas to S3 and ECR
on:
push:
branches:
- master
# - master
- fix-thumbnail-lambda-build
paths:
- '.github/workflows/deploy-lambdas.yaml'
- 'lambdas/**'
Expand Down Expand Up @@ -79,17 +80,17 @@ jobs:
- name: Build Docker image
working-directory: ./lambdas/${{ matrix.path }}
run: docker buildx build -t "quiltdata/lambdas/${{ matrix.path }}:${{ github.sha }}" -f Dockerfile ..
- name: Configure AWS credentials from Prod account
uses: aws-actions/configure-aws-credentials@v4
with:
role-to-assume: arn:aws:iam::730278974607:role/github/GitHub-Quilt
aws-region: us-east-1
- name: Push Docker image to Prod ECR
run: ./lambdas/scripts/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: Push Docker image to GovCloud ECR
run: ./lambdas/scripts/upload_ecr.sh 313325871032 "quiltdata/lambdas/${{ matrix.path }}:${{ github.sha }}"
# - name: Configure AWS credentials from Prod account
# uses: aws-actions/configure-aws-credentials@v4
# with:
# role-to-assume: arn:aws:iam::730278974607:role/github/GitHub-Quilt
# aws-region: us-east-1
# - name: Push Docker image to Prod ECR
# run: ./lambdas/scripts/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: Push Docker image to GovCloud ECR
# run: ./lambdas/scripts/upload_ecr.sh 313325871032 "quiltdata/lambdas/${{ matrix.path }}:${{ github.sha }}"

0 comments on commit 4a9f594

Please sign in to comment.