Skip to content

Commit

Permalink
Add ECR login
Browse files Browse the repository at this point in the history
  • Loading branch information
KONFeature committed May 28, 2024
1 parent 62a433e commit 76fe239
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 7 deletions.
14 changes: 9 additions & 5 deletions .github/workflows/deploy-submodule.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,18 +28,22 @@ jobs:
- name: "🔨 Install dependencies"
run: bun install --frozen-lockfile

- name: "🔨 Prebuild docker dependencies"
uses: docker/build-push-action@v5
with:
push: false

- name: "👥 Configure AWS Credentials"
uses: aws-actions/configure-aws-credentials@v4
with:
role-to-assume: arn:aws:iam::262732185023:role/github-action-deploy-role
aws-region: eu-west-1
retry-max-attempts: 5

- name: "👥 Login to Amazon ECR"
id: login-ecr
uses: aws-actions/amazon-ecr-login@v2

- name: "🔨 Prebuild docker dependencies"
uses: docker/build-push-action@v5
with:
push: false

- name: "🚀 SST Deploy"
env:
STAGE_OVERRIDE: ${{ inputs.stage-override }}
Expand Down
4 changes: 2 additions & 2 deletions sst.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -41,8 +41,8 @@ function IndexerStack({ app, stack }: StackContext) {
// Get the security group for the database
const databaseSecurityGroup = SecurityGroup.fromLookupById(
stack,
"subgraph-security-group",
"sg-037f30a3a8d9fa718"
"indexer-db-sg",
"sg-0cbbb98322234113f"
);

// The service itself
Expand Down

0 comments on commit 76fe239

Please sign in to comment.