hxtree/galaxyops

pipeline

Closed this issue · 5 comments

Is your feature request related to a problem? Please describe.
A clear and concise description of what the problem is. Ex. I'm always frustrated when [...]

aws pipelines should kick off on merge to automatically deploy code.

code needs to be deployed from the tools account.

Describe the solution you'd like
A clear and concise description of what you want to happen.

when code is merged into main it gets deployed in aws

Describe alternatives you've considered
A clear and concise description of any alternative solutions or features you've considered.

Additional context
Add any other context or screenshots about the feature request here.

one merge could cause multiple cloud formation stack changes.

There is a regression bug rushx deploy no longer works due to esbuild in NodeJsFunction running from the the wrong directory. In order to deploy one must run rush build:all && rushx deploy and see the error message and then run that from the appropriate directory.

pnpm exec -- esbuild --bundle "/usr/src/app/packages/character-sheet/src/index.ts" --target=es2021 --platform=node --outfile="/usr/src/app/packages/character-sheet/cdk.out/bundling-temp-1ed464cc68da21726a599c22f14f7f11500e097232a05dcbb624a1377cb74907/index.js" --sourcemap --external:express --external:reflect-metadata --external:rxjs --external:source-map-support --external:aws-lambda --external:class-transformer --external:class-validator --external:@nestjs/common --external:@nestjs/core --external:@nestjs/terminus --external:@vendia/serverless-express --external:express --external:node-cache --external:reflect-metadata --external:rxjs --keep-names

Then run the rushx deploy command again. This is obviously less then ideal. Need to fix path or move esbuild to a script.

This issue is stale because it has been open 30 days with no activity. Remove stale label or comment or this will be closed in 30 days.

hxtree commented

Packages are being deployed to S3, need a CDK pipeline to take them and build each,

hxtree commented

Pipeline to take and build them scaffolded in.
Problem is there is no lock file in rush deploy.
Which means NodeJSFunction cannot be used to bundle.
Need to move bundler and use regular Lambda function so that npm cdk:deploy does not need a lock file.

hxtree commented

Github pipeline is working to bundle packages and upload zip file to S3. Opening another ticket for having CodePipeline deploy.