-
Notifications
You must be signed in to change notification settings - Fork 25
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
036b9ee
commit 60206e0
Showing
36 changed files
with
10,534 additions
and
895 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -14,46 +14,16 @@ permissions: # see this: https://docs.github.com/en/actions/using-jobs/assigning | |
|
||
env: | ||
AWS_REGION: us-east-2 | ||
GITHUB_TOKEN: ${{ secrets.TS_IMMUTABLE_SDK_GITHUB_TOKEN }} | ||
|
||
jobs: | ||
build-deploy-api: | ||
name: Build and Deploy API | ||
runs-on: ubuntu-latest-4-cores | ||
steps: | ||
- name: configure aws credentials | ||
id: aws-credentials | ||
uses: aws-actions/configure-aws-credentials@v4 | ||
with: | ||
role-to-assume: ${{ secrets.AWS_IMMUTABLE_NONPROD_DOCKER_ROLE }} | ||
aws-region: ${{ env.AWS_REGION }} | ||
|
||
- name: Checkout code | ||
uses: actions/checkout@v4 | ||
with: | ||
ref: ${{ github.event.pull_request.head.ref }} | ||
fetch-depth: 0 | ||
- name: setup | ||
uses: ./.github/actions/setup | ||
|
||
- name: Log in to GitHub Container Registry | ||
uses: docker/login-action@v3 | ||
with: | ||
registry: ghcr.io | ||
username: ${{ github.actor }} | ||
password: ${{ env.GITHUB_TOKEN }} | ||
|
||
- name: Login to Amazon ECR | ||
id: login-ecr | ||
uses: docker/login-action@v3 | ||
with: | ||
registry: ${{ steps.aws-credentials.outputs.aws-account-id }}.dkr.ecr.${{ env.AWS_REGION }}.amazonaws.com | ||
|
||
- name: Set up Docker Buildx | ||
uses: docker/setup-buildx-action@v3 | ||
|
||
- uses: hmarr/debug-action@v3 | ||
|
||
- name: build-image | ||
run: | | ||
INPUT_GITHUB_TOKEN=${{ env.GITHUB_TOKEN }} yarn nx run api:deploy --configuration=ci | ||
dev_docker_build_push: | ||
uses: immutable/im-shared-github-actions/.github/workflows/[email protected] | ||
with: | ||
environment: sandbox | ||
url: "https://api.sandbox.immutable.com" | ||
dockerfile: "./api/Dockerfile" | ||
role-to-assume: "arn:aws:iam::783421985614:role/immutable-nonprod-docker-image-push" | ||
role-session-name: "hub-immutable-nonprod-docker-image-push" | ||
aws-region: "us-east-2" | ||
secrets: | ||
github-token: ${{ secrets.TS_IMMUTABLE_SDK_GITHUB_TOKEN }} |
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
nodeLinker: node-modules |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
{ | ||
"compilerOptions": { | ||
"noEmit": false, | ||
"outDir": "./dist", | ||
"rootDirs": ["src"], | ||
"target": "es2022", | ||
"module": "esnext", | ||
"moduleResolution": "bundler", | ||
"allowJs": false, | ||
"removeComments": false, | ||
"strict": true, | ||
"forceConsistentCasingInFileNames": false, | ||
"allowSyntheticDefaultImports": true, | ||
"esModuleInterop": true, | ||
"declaration": true, | ||
"resolveJsonModule": true, | ||
"skipLibCheck": true, | ||
"isolatedModules": true, | ||
"noEmitOnError": true | ||
}, | ||
"include": ["src"], | ||
"exclude": ["node_modules", "dist"], | ||
"ts-node-dev": { | ||
"compilerOptions": { | ||
"module": "NodeNext", | ||
"moduleResolution": "NodeNext", | ||
"customConditions": null | ||
} | ||
} | ||
} |
Oops, something went wrong.