Browse Source

fix ci

main
Gisle Aune 2 years ago
parent
commit
6a58c465b3
  1. 3
      .drone.yml
  2. 2
      src/rust/namegen-lambda/src/main.rs

3
.drone.yml

@ -70,4 +70,5 @@ steps:
- cd __sapper__/export - cd __sapper__/export
- aws s3 sync --delete . s3://$S3_WEBUI_BUCKET - aws s3 sync --delete . s3://$S3_WEBUI_BUCKET
- aws cloudfront create-invalidation --distribution-id $CF_DISTRIBUTION_ID --paths "/*" - aws cloudfront create-invalidation --distribution-id $CF_DISTRIBUTION_ID --paths "/*"
- aws lambda update-function-code --function-name namegen_lambda --zip-file fileb://$(pwd)code.zip
- cd ../../
- aws lambda update-function-code --function-name namegen_lambda --zip-file fileb://$(pwd)/code.zip

2
src/rust/namegen-lambda/src/main.rs

@ -48,7 +48,7 @@ async fn main() -> Result<(), Error> {
}; };
if let Some(gen) = name.generate(format_name) { if let Some(gen) = name.generate(format_name) {
let vec: Vec<String> = gen.take(64).collect();
let vec: Vec<String> = gen.take(256).collect();
EndpointResult::Ok( EndpointResult::Ok(
Response::builder() Response::builder()

Loading…
Cancel
Save