-
-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* More static deployment stuff * Fix tests * fix cd
- Loading branch information
Showing
32 changed files
with
689 additions
and
204 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
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,6 @@ | ||
--- | ||
"@astro-aws/adapter": minor | ||
"@astro-aws/constructs": minor | ||
--- | ||
|
||
Added support for static deployments |
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 |
---|---|---|
|
@@ -6,6 +6,7 @@ | |
.env | ||
.env.production | ||
.netlify | ||
.turbo | ||
cdk.out/ | ||
dist/ | ||
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
github: | ||
- lukeshay | ||
custom: | ||
- https://account.venmo.com/u/LukeShay | ||
- https://paypal.me/rlshay | ||
# patreon: # Replace with a single Patreon username | ||
# open_collective: # Replace with a single Open Collective username | ||
# ko_fi: # Replace with a single Ko-fi username | ||
# tidelift: # Replace with a single Tidelift platform-name/package-name e.g., npm/babel | ||
# community_bridge: # Replace with a single Community Bridge project-name e.g., cloud-foundry | ||
# liberapay: # Replace with a single Liberapay username | ||
# issuehunt: # Replace with a single IssueHunt username | ||
# otechie: # Replace with a single Otechie username | ||
# lfx_crowdfunding: # Replace with a single LFX Crowdfunding project-name e.g., cloud-foundry |
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,89 @@ | ||
name: Deploy | ||
|
||
on: | ||
workflow_call: | ||
inputs: | ||
node_version: | ||
description: The version of node to use | ||
required: true | ||
type: string | ||
default: "18" | ||
stack_environment: | ||
description: The stack environment to deploy | ||
required: true | ||
type: string | ||
environment_name: | ||
description: The GitHub environment name | ||
required: true | ||
type: string | ||
environment_url: | ||
description: The GitHub environment url | ||
required: true | ||
type: string | ||
aws_session_name: | ||
description: AWS session name | ||
required: false | ||
type: string | ||
aws_region: | ||
description: The AWS region | ||
required: false | ||
type: string | ||
default: us-east-1 | ||
ref: | ||
description: The git ref to checkout | ||
required: false | ||
type: string | ||
repository: | ||
description: The git repository to checkout | ||
required: false | ||
type: string | ||
secrets: | ||
AWS_ROLE_ARN: | ||
description: The AWS Role ARN to use | ||
required: true | ||
AWS_ACCOUNT_ID: | ||
description: The AWS Account ID | ||
required: true | ||
TURBO_TOKEN: | ||
description: Turborepo remote cache token | ||
required: false | ||
TURBO_TEAM: | ||
description: Turborepo remote cache team | ||
required: false | ||
|
||
env: | ||
CI: true | ||
|
||
permissions: | ||
id-token: write | ||
contents: read | ||
deployments: write | ||
|
||
jobs: | ||
deploy: | ||
name: Deploy | ||
runs-on: ubuntu-22.04 | ||
env: | ||
TURBO_TOKEN: ${{ secrets.TURBO_TOKEN }} | ||
TURBO_TEAM: ${{ secrets.TURBO_TEAM }} | ||
environment: | ||
name: ${{ inputs.environment_name }} | ||
url: ${{ inputs.environment_url }} | ||
steps: | ||
- run: echo "::add-mask::${{ secrets.AWS_ACCOUNT_ID }}" | ||
- uses: actions/checkout@v3 | ||
with: | ||
ref: ${{ inputs.ref }} | ||
repository: ${{ inputs.repository }} | ||
- name: Configure AWS Credentials | ||
uses: aws-actions/configure-aws-credentials@v1 | ||
with: | ||
aws-region: ${{ inputs.aws_region }} | ||
role-to-assume: ${{ secrets.AWS_ROLE_ARN }} | ||
role-session-name: ${{ inputs.aws_session_name }} | ||
- uses: actions/setup-node@v3 | ||
with: | ||
node-version: ${{ inputs.node_version }} | ||
cache: "yarn" | ||
- run: yarn install --mode=skip-build | ||
- run: yarn deploy:one infra -- ${{ inputs.stack_environment }} |
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 |
---|---|---|
|
@@ -7,6 +7,7 @@ | |
.DS_Store | ||
.env* | ||
.netlify | ||
.turbo | ||
.turbo/ | ||
cdk.out/ | ||
dist/ | ||
|
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 |
---|---|---|
|
@@ -6,6 +6,7 @@ | |
.env | ||
.env.production | ||
.netlify | ||
.turbo | ||
cdk.out/ | ||
dist/ | ||
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,3 @@ | ||
# astro-aws | ||
|
||
[![CI](https://github.com/lukeshay/astro-aws/actions/workflows/ci.yml/badge.svg)](https://github.com/lukeshay/astro-aws/actions/workflows/ci.yml) [![CD](https://github.com/lukeshay/astro-aws/actions/workflows/cd-dev.yml/badge.svg)](https://github.com/lukeshay/astro-aws/actions/workflows/cd-dev.yml) |
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 |
---|---|---|
|
@@ -2,7 +2,7 @@ | |
"name": "@astro-aws/infra", | ||
"version": "0.0.0", | ||
"private": true, | ||
"homepage": "https://astro-aws.lshay.dev/", | ||
"homepage": "https://astro-aws.org/", | ||
"repository": { | ||
"type": "git", | ||
"url": "ssh://[email protected]/lukeshay/astro-aws.git", | ||
|
@@ -18,8 +18,7 @@ | |
], | ||
"scripts": { | ||
"build": "scripts build", | ||
"deploy": "./scripts/build-and-invalidate.sh", | ||
"invalidate": "./scripts/invalidate-cloudfront-cache.sh", | ||
"deploy": "./scripts/deploy.sh", | ||
"synth": "cdk synth" | ||
}, | ||
"eslintConfig": { | ||
|
@@ -32,9 +31,9 @@ | |
"@astro-aws/constructs": "workspace:^", | ||
"@astro-aws/www": "workspace:^", | ||
"@types/node": "^18.11.9", | ||
"aws-cdk": "^2.52.0", | ||
"aws-cdk-lib": "^2.52.0", | ||
"constructs": "^10.1.173", | ||
"aws-cdk": "^2.53.0", | ||
"aws-cdk-lib": "^2.53.0", | ||
"constructs": "^10.1.175", | ||
"eslint": "^8.28.0", | ||
"prettier": "^2.8.0", | ||
"typescript": "^4.9.3" | ||
|
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 was deleted.
Oops, something went wrong.
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
Oops, something went wrong.