ci: push migration tar to s3
davinTI/app-dono-modulos/pipeline/head This commit looks good

This commit is contained in:
tkinaba
2026-03-12 16:33:49 -03:00
parent ae847b96d7
commit 17141b7e76
2 changed files with 6 additions and 0 deletions
Vendored
+3
View File
@@ -42,10 +42,13 @@ pipeline {
echo 'Generating manifest and deploying to S3...' echo 'Generating manifest and deploying to S3...'
sh 'npm run generate:output' sh 'npm run generate:output'
sh 'tar -czvf migrations.tar.gz -C migrations/ .'
withAWS(credentials: 'aws-jeff-credentials-id', region: 'sa-east-1') { withAWS(credentials: 'aws-jeff-credentials-id', region: 'sa-east-1') {
script { script {
echo "Uploading to S3..." echo "Uploading to S3..."
sh "aws s3 cp dist/manifest.json ${S3_BUCKET}/manifest.json" sh "aws s3 cp dist/manifest.json ${S3_BUCKET}/manifest.json"
sh "aws s3 cp migrations.tar.gz ${S3_BUCKET}/migrations.tar.gz"
} }
} }
} }
+3
View File
@@ -0,0 +1,3 @@
# Migrations