-
Notifications
You must be signed in to change notification settings - Fork 0
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
0 parents
commit b615648
Showing
4 changed files
with
59 additions
and
0 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 |
---|---|---|
@@ -0,0 +1,39 @@ | ||
name: Deploy | ||
|
||
permissions: | ||
id-token: write | ||
|
||
on: | ||
workflow_dispatch: | ||
push: | ||
branches: | ||
- saga | ||
env: | ||
CI: 1 | ||
FORCE_COLOR: 3 | ||
JSII_SILENCE_WARNING_UNTESTED_NODE_VERSION: 1 | ||
NODE_NO_WARNINGS: 1 | ||
|
||
jobs: | ||
deploy: | ||
runs-on: ubuntu-22.04 | ||
|
||
timeout-minutes: 5 | ||
|
||
steps: | ||
- uses: actions/checkout@v4 | ||
|
||
- uses: actions/setup-node@v4 | ||
|
||
# This will only work, if you've run `npx cdk deploy` once manually. | ||
- name: Configure AWS credentials | ||
uses: aws-actions/configure-aws-credentials@v4 | ||
with: | ||
# The role is set up via https://github.com/bifravst/ci | ||
# secrets.AWS_ACCOUNT_ID_CI is an organization secret | ||
role-to-assume: | | ||
arn:aws:iam::${{ secrets.AWS_ACCOUNT_ID_CI }}:role/${{ github.repository_owner }}-ci-${{ github.event.repository.name }} | ||
# vars.AWS_REGION_CI is an organization variable | ||
aws-region: ${{ vars.AWS_REGION_CI }} | ||
|
||
- run: npx cdk deploy --require-approval never |
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 @@ | ||
/ci/ |
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,17 @@ | ||
# Bifravst CI | ||
|
||
Uses [hello-nrfcloud/ci](https://github.com/hello-nrfcloud/ci) to set up the permissions in our AWS CI account for the repositories in this | ||
GitHub organization that are supposed to have access so they are be able to use | ||
it for CI runs. | ||
|
||
The allowed list of repositories is managed via the [`repos.txt`](./repos.txt) | ||
file. | ||
|
||
> [!CAUTION] | ||
> Do not run this against the production account, but against the CI account. | ||
```bash | ||
git clone https://github.com/hello-nrfcloud/ci | ||
npm ci | ||
REPOS_LIST=../repos.txt npx cdk deploy | ||
``` |
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,2 @@ | ||
bifravst/ci | ||
bifravst/aws-cdk-lambda-helpers |