Skip to content

Commit

Permalink
Merge pull request #2592 from jhaals/fix-deploy
Browse files Browse the repository at this point in the history
Fix deploy
  • Loading branch information
jhaals authored Dec 3, 2024
2 parents 72fa080 + 23ccbbb commit c4dac8f
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 8 deletions.
4 changes: 2 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
FROM golang:buster as app
FROM golang:bookworm AS app
RUN mkdir -p /yopass
WORKDIR /yopass
COPY . .
RUN go build ./cmd/yopass && go build ./cmd/yopass-server

FROM node:18 as website
FROM node:18 AS website
COPY website /website
WORKDIR /website
RUN yarn install --network-timeout 600000 && yarn build
Expand Down
3 changes: 2 additions & 1 deletion deploy/cdk/.gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -8,4 +8,5 @@ node_modules
cdk.out

bootstrap
bootstrap.zip
bootstrap.zip
deployment.zip
2 changes: 1 addition & 1 deletion deploy/cdk/bin/cdk.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ new CdkStack(app, "CdkStack", {
* and Region that are implied by the current CLI configuration. */
env: {
account: process.env.CDK_DEFAULT_ACCOUNT,
region: process.env.CDK_DEFAULT_REGION,
region: "eu-west-1",
},

/* Uncomment the next line if you know exactly what Account and Region you
Expand Down
8 changes: 4 additions & 4 deletions deploy/cdk/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,18 +5,18 @@
"cdk": "bin/cdk.js"
},
"scripts": {
"build": "tsc",
"build": "tsc && GOOS=linux GOARCH=arm64 go build -o ./bootstrap -tags lambda.norpc && zip deployment.zip bootstrap",
"watch": "tsc -w",
"test": "jest",
"cdk": "cdk",
"deploy": "GOOS=linux GOARCH=arm64 go build -o ./bootstrap -tags lambda.norpc && zip deployment.zip bootstrap && cdk synth"
"deploy": "cdk synth"
},
"devDependencies": {
"@types/jest": "^29.5.12",
"@types/node": "22.5.4",
"aws-cdk": "2.161.1",
"jest": "^29.7.0",
"ts-jest": "^29.2.5",
"aws-cdk": "2.161.1",
"ts-node": "^10.9.2",
"typescript": "~5.6.2"
},
Expand All @@ -25,4 +25,4 @@
"constructs": "^10.0.0",
"source-map-support": "^0.5.21"
}
}
}

0 comments on commit c4dac8f

Please sign in to comment.