From 1bb71f6b37e3f6bb78e91d1acd4d3a4411cf0518 Mon Sep 17 00:00:00 2001 From: Ihor S Date: Tue, 9 Sep 2025 15:12:52 +0200 Subject: [PATCH 1/2] fix --- .github/workflows/deploy-dev.yml | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/.github/workflows/deploy-dev.yml b/.github/workflows/deploy-dev.yml index 2837e84..fe56d4b 100644 --- a/.github/workflows/deploy-dev.yml +++ b/.github/workflows/deploy-dev.yml @@ -49,7 +49,7 @@ jobs: - if: ${{ steps.cache-api.outputs.cache-hit != 'true' }} name: Zip application - run: zip -r app.zip . -x ".git/*" ".github/*" "infra/*" "docker/*" "test/*" + run: zip -r app.zip . -x ".git/*" ".github/*" "infra/*" "docker/*" "test/*" --quiet - if: ${{ steps.cache-api.outputs.cache-hit != 'true' }} name: Upload to S3 @@ -61,7 +61,7 @@ jobs: - if: ${{ steps.cache-api.outputs.cache-hit != 'true' }} name: Update EC2 from S3 and restart docker-compose run: | - # Send SSM command to sync code, rebuild, restart, and run migrations + # Send SSM command to download code and build artifact, restart docker-compose, and run migrations aws ssm send-command \ --document-name "AWS-RunShellScript" \ --targets "Key=instanceids,Values=$EC2_INSTANCE_ID" \ @@ -70,9 +70,9 @@ jobs: "set -e", "cd /var/www/app", "aws s3 cp s3://'"$CODE_BUCKET"'/'"$FILE_NAME"' app.zip --region '"$REGION"'", - "sudo -u ec2-user unzip -o app.zip", + "sudo -u ec2-user unzip -qo app.zip", "sleep 15", - "sudo -u ec2-user /usr/local/bin/docker-compose -f docker-compose-dev.yml restart api-run postgres redis -d", + "sudo -u ec2-user /usr/local/bin/docker-compose -f docker-compose-dev.yml restart api-run postgres redis", "sleep 15", "sudo -u ec2-user /usr/local/bin/docker-compose -f docker-compose-dev.yml exec -T api-run npm run migration:run" ]' \ From 59d87728d3e6e8fe05f1acaf65e10ea2c60cb6eb Mon Sep 17 00:00:00 2001 From: Ihor S Date: Tue, 9 Sep 2025 15:12:54 +0200 Subject: [PATCH 2/2] 0.0.8 --- package-lock.json | 4 ++-- package.json | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/package-lock.json b/package-lock.json index b656568..9647291 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,12 +1,12 @@ { "name": "ionicapp", - "version": "0.0.7", + "version": "0.0.8", "lockfileVersion": 3, "requires": true, "packages": { "": { "name": "ionicapp", - "version": "0.0.7", + "version": "0.0.8", "license": "UNLICENSED", "dependencies": { "@nestjs/common": "^11.0.1", diff --git a/package.json b/package.json index 2da2013..dc56981 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "ionicapp", - "version": "0.0.7", + "version": "0.0.8", "description": "", "author": "", "private": true,