Skip to content

Commit

Permalink
feat: Work on supporting previewing the dev stack
Browse files Browse the repository at this point in the history
  • Loading branch information
KallynGowdy committed Aug 16, 2024
1 parent 38ca99d commit a3c3cc0
Show file tree
Hide file tree
Showing 6 changed files with 35 additions and 20 deletions.
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: Preview
name: Preview Dev

on:
pull_request:
Expand Down Expand Up @@ -40,4 +40,6 @@ jobs:
run: |
pnpm install
pulumi login file://./.pulumi
pulumi preview --diff > ./previews/preview.diff
export PULUMI_CONFIG_PASSPHRASE_FILE="./.secrets/dev.txt"
pulumi preview > ./preview.simple.diff
pulumi preview --diff > ./preview.diff
1 change: 1 addition & 0 deletions .secrets/dev.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
dev
6 changes: 5 additions & 1 deletion Pulumi.dev.yaml
Original file line number Diff line number Diff line change
@@ -1 +1,5 @@
encryptionsalt: v1:QFUBps5oMC0=:v1:ujK1dCvyihPPrZ7g:rVcaIpOxtv3+dV1x6Vro3bz2k2a0rA==
encryptionsalt: v1:jbr5CCR2wqc=:v1:dEWbW/FGjS0VFtct:OSx6tNNz8+Q7ZVkJn9X89JnAFE6utA==
config:
casualos:allowedApiOrigins: http://localhost:3000
casualos:allowedOrigins: http://localhost:3002
aws-native:region: us-east-1
2 changes: 1 addition & 1 deletion Pulumi.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: .pulumi
name: casualos
runtime:
name: nodejs
options:
Expand Down
10 changes: 4 additions & 6 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,17 +1,14 @@
{
"name": "infra-template",
"version": "1.0.0",
"description": "",
"main": "index.js",
"scripts": {
"login": "pulumi login file://.",
"preview": "cross-env PULUMI_CONFIG_PASSPHRASE_FILE=./.secrets/dev.txt pulumi preview --diff",
"test": "echo \"Error: no test specified\" && exit 1"
},
"keywords": [],
"author": "Casual Simulation",
"license": "MIT",
"dependencies": {
"@casual-simulation/infra": "3.3.8-alpha.0",
"@casual-simulation/infra": "3.3.8-alpha.3",
"@pulumi/aws": "^6.0.0",
"@pulumi/aws-apigateway": "^2.0.0",
"@pulumi/awsx": "^2.0.2",
Expand All @@ -20,6 +17,7 @@
},
"devDependencies": {
"@types/node": "^18",
"typescript": "^5.0.0"
"typescript": "^5.0.0",
"cross-env": "7.0.3"
}
}
30 changes: 20 additions & 10 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit a3c3cc0

Please sign in to comment.