Compare commits

..

No commits in common. "425bc86cc76a5399cf53066509b199eeb52950f2" and "45a63e8552eca2099e13fd25b178c65a07d584e2" have entirely different histories.

8 changed files with 23 additions and 49 deletions

View file

@ -1,15 +0,0 @@
version: 2
updates:
- package-ecosystem: npm
directory: /
schedule:
interval: weekly
assignees:
- amoussa1229
- package-ecosystem: github-actions
directory: /
schedule:
interval: weekly
assignees:
- amoussa1229

View file

@ -7,5 +7,4 @@ jobs:
ci:
uses: Sea-Haven-Industries/.github/.github/workflows/ci-typescript-cdk.yaml@main
with:
node-version: "24"
enable-qemu: true

View file

@ -15,7 +15,6 @@ jobs:
deploy:
uses: Sea-Haven-Industries/.github/.github/workflows/cd-cdk.yaml@main
with:
node-version: "24"
enable-qemu: true
secrets:
deploy-role-arn: ${{ secrets.AWS_DEPLOY_ROLE_ARN }}

1
.gitignore vendored
View file

@ -5,4 +5,3 @@ cdk.out/
*.d.ts
*.js.map
docs/*.pdf
__pycache__/

View file

@ -18,8 +18,6 @@ interface BackupVerificationProps {
}
export class BackupVerification extends Construct {
public readonly functionArn: string;
constructor(scope: Construct, id: string, props: BackupVerificationProps) {
super(scope, id);
@ -108,7 +106,5 @@ export class BackupVerification extends Construct {
treatMissingData: cloudwatch.TreatMissingData.BREACHING,
comparisonOperator: cloudwatch.ComparisonOperator.GREATER_THAN_OR_EQUAL_TO_THRESHOLD,
});
this.functionArn = fn.functionArn;
}
}

View file

@ -455,7 +455,7 @@ export class ForgejoStack extends cdk.Stack {
),
});
const backupVerification = new BackupVerification(this, "BackupVerification", {
new BackupVerification(this, "BackupVerification", {
sourceBucket: backupBucket,
replicaBucketName: props.replicaBucketName,
gcsBucket: "forgejo-backups-offsite-seahaven",
@ -463,10 +463,6 @@ export class ForgejoStack extends cdk.Stack {
slackWebhookSecretName: "forgejo/slack-webhook",
});
new cdk.CfnOutput(this, "BackupVerificationFunctionArn", {
value: backupVerification.functionArn,
});
new cdk.CfnOutput(this, "ForgejoUrl", {
value: "https://forgejo.seahaven.com",
});

36
package-lock.json generated
View file

@ -8,18 +8,18 @@
"name": "forgejo",
"version": "1.0.0",
"dependencies": {
"@aws-cdk/aws-lambda-python-alpha": "2.253.1-alpha.0",
"aws-cdk-lib": "2.253.1",
"@aws-cdk/aws-lambda-python-alpha": "^2.252.0-alpha.0",
"aws-cdk-lib": "^2.252.0",
"constructs": "^10.0.0"
},
"bin": {
"app": "bin/app.js"
},
"devDependencies": {
"@types/node": "^25.9.0",
"@types/node": "^22.0.0",
"aws-cdk": "^2.252.0",
"source-map-support": "^0.5.21",
"typescript": "~6.0.3"
"typescript": "~5.7.0"
}
},
"node_modules/@aws-cdk/asset-awscli-v1": {
@ -35,15 +35,15 @@
"license": "Apache-2.0"
},
"node_modules/@aws-cdk/aws-lambda-python-alpha": {
"version": "2.253.1-alpha.0",
"resolved": "https://registry.npmjs.org/@aws-cdk/aws-lambda-python-alpha/-/aws-lambda-python-alpha-2.253.1-alpha.0.tgz",
"integrity": "sha512-k4yeoKExF7aGvmcY7pPFP6wjrt1L/mNtnddA72yIqcSDumAKI0hRqkqp7yG6GC45ubeuAD0pCQeSW9YGkEMI9A==",
"version": "2.252.0-alpha.0",
"resolved": "https://registry.npmjs.org/@aws-cdk/aws-lambda-python-alpha/-/aws-lambda-python-alpha-2.252.0-alpha.0.tgz",
"integrity": "sha512-hVcursqZQ6tjToN4AvzOTfoeiN9epJGbUVi5VCGbIT88ide4hUzKsOda29+vw1Ket8nLi5i/xNB9odWU5QWdkw==",
"license": "Apache-2.0",
"engines": {
"node": ">= 20.0.0"
},
"peerDependencies": {
"aws-cdk-lib": "^2.253.1",
"aws-cdk-lib": "^2.252.0",
"constructs": "^10.5.0"
}
},
@ -84,13 +84,13 @@
}
},
"node_modules/@types/node": {
"version": "25.9.0",
"resolved": "https://registry.npmjs.org/@types/node/-/node-25.9.0.tgz",
"integrity": "sha512-AOQwYUNolgy3VosiRqXrACUXTN8nJUtPl7FJXMqZVyxiiCLhQuG3jXKvCS1ALr+Y2OmZhzzLVlYPEqJaiqkaJQ==",
"version": "22.19.18",
"resolved": "https://registry.npmjs.org/@types/node/-/node-22.19.18.tgz",
"integrity": "sha512-9v00a+dn2yWVsYDEunWC4g/TcRKVq3r8N5FuZp7u0SGrPvdN9c2yXI9bBuf5Fl0hNCb+QTIePTn5pJs2pwBOQQ==",
"dev": true,
"license": "MIT",
"dependencies": {
"undici-types": ">=7.24.0 <7.24.7"
"undici-types": "~6.21.0"
}
},
"node_modules/aws-cdk": {
@ -515,9 +515,9 @@
}
},
"node_modules/typescript": {
"version": "6.0.3",
"resolved": "https://registry.npmjs.org/typescript/-/typescript-6.0.3.tgz",
"integrity": "sha512-y2TvuxSZPDyQakkFRPZHKFm+KKVqIisdg9/CZwm9ftvKXLP8NRWj38/ODjNbr43SsoXqNuAisEf1GdCxqWcdBw==",
"version": "5.7.3",
"resolved": "https://registry.npmjs.org/typescript/-/typescript-5.7.3.tgz",
"integrity": "sha512-84MVSjMEHP+FQRPy3pX9sTVV/INIex71s9TL2Gm5FG/WG1SqXeKyZ0k7/blY/4FdOzI12CBy1vGc4og/eus0fw==",
"dev": true,
"license": "Apache-2.0",
"bin": {
@ -529,9 +529,9 @@
}
},
"node_modules/undici-types": {
"version": "7.24.6",
"resolved": "https://registry.npmjs.org/undici-types/-/undici-types-7.24.6.tgz",
"integrity": "sha512-WRNW+sJgj5OBN4/0JpHFqtqzhpbnV0GuB+OozA9gCL7a993SmU+1JBZCzLNxYsbMfIeDL+lTsphD5jN5N+n0zg==",
"version": "6.21.0",
"resolved": "https://registry.npmjs.org/undici-types/-/undici-types-6.21.0.tgz",
"integrity": "sha512-iwDZqg0QAGrg9Rav5H4n0M64c3mkR59cJ6wQp+7C4nI0gsmExaedaYLNO44eT4AtBBwjbTiGPMlt2Md0T9H9JQ==",
"dev": true,
"license": "MIT"
}

View file

@ -12,14 +12,14 @@
"diff": "cdk diff"
},
"devDependencies": {
"@types/node": "^25.9.0",
"@types/node": "^22.0.0",
"aws-cdk": "^2.252.0",
"source-map-support": "^0.5.21",
"typescript": "~6.0.3"
"typescript": "~5.7.0"
},
"dependencies": {
"@aws-cdk/aws-lambda-python-alpha": "2.253.1-alpha.0",
"aws-cdk-lib": "2.253.1",
"@aws-cdk/aws-lambda-python-alpha": "^2.252.0-alpha.0",
"aws-cdk-lib": "^2.252.0",
"constructs": "^10.0.0"
}
}