fix: aws stages
This commit is contained in:
@@ -5,7 +5,9 @@ export const domain = (() => {
|
|||||||
})()
|
})()
|
||||||
|
|
||||||
export const zoneID = "430ba34c138cfb5360826c4909f99be8"
|
export const zoneID = "430ba34c138cfb5360826c4909f99be8"
|
||||||
export const deployAws = $app.stage === "production" || $app.stage === "dev" || $app.stage === "adam"
|
// Dev owns the shared AWS lake/stats infra for all non-production stages.
|
||||||
|
export const awsStage = $app.stage === "production" ? "production" : "dev"
|
||||||
|
export const deployAws = $app.stage === awsStage
|
||||||
|
|
||||||
const githubActionsDeployRole = (() => {
|
const githubActionsDeployRole = (() => {
|
||||||
if ($app.stage !== "dev" && $app.stage !== "production") return
|
if ($app.stage !== "dev" && $app.stage !== "production") return
|
||||||
|
|||||||
@@ -2,7 +2,9 @@
|
|||||||
|
|
||||||
export default $config({
|
export default $config({
|
||||||
app(input) {
|
app(input) {
|
||||||
const deployAws = input.stage === "production" || input.stage === "dev" || input.stage === "adam"
|
// Dev owns the shared AWS lake/stats infra for all non-production stages.
|
||||||
|
const awsStage = input.stage === "production" ? "production" : "dev"
|
||||||
|
const deployAws = input.stage === awsStage
|
||||||
return {
|
return {
|
||||||
name: "opencode",
|
name: "opencode",
|
||||||
removal: input?.stage === "production" ? "retain" : "remove",
|
removal: input?.stage === "production" ? "retain" : "remove",
|
||||||
@@ -48,6 +50,7 @@ export default $config({
|
|||||||
return {
|
return {
|
||||||
StatWorkerUrl: stat.url,
|
StatWorkerUrl: stat.url,
|
||||||
// StatsUrl: stats.app.url,
|
// StatsUrl: stats.app.url,
|
||||||
|
AwsStage: stage.awsStage,
|
||||||
...(stage.githubActionsDeployRoleArn ? { GithubActionsDeployRoleArn: stage.githubActionsDeployRoleArn } : {}),
|
...(stage.githubActionsDeployRoleArn ? { GithubActionsDeployRoleArn: stage.githubActionsDeployRoleArn } : {}),
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|||||||
Reference in New Issue
Block a user