From 17141b7e7643515b15a0ddf837a32562c7fc44f9 Mon Sep 17 00:00:00 2001 From: tkinaba Date: Thu, 12 Mar 2026 16:33:49 -0300 Subject: [PATCH] ci: push migration tar to s3 --- Jenkinsfile | 3 +++ migrations/README.md | 3 +++ 2 files changed, 6 insertions(+) create mode 100644 migrations/README.md diff --git a/Jenkinsfile b/Jenkinsfile index 36668d1..817d451 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -42,10 +42,13 @@ pipeline { echo 'Generating manifest and deploying to S3...' sh 'npm run generate:output' + sh 'tar -czvf migrations.tar.gz -C migrations/ .' + withAWS(credentials: 'aws-jeff-credentials-id', region: 'sa-east-1') { script { echo "Uploading to S3..." sh "aws s3 cp dist/manifest.json ${S3_BUCKET}/manifest.json" + sh "aws s3 cp migrations.tar.gz ${S3_BUCKET}/migrations.tar.gz" } } } diff --git a/migrations/README.md b/migrations/README.md new file mode 100644 index 0000000..663e81e --- /dev/null +++ b/migrations/README.md @@ -0,0 +1,3 @@ +# Migrations + +