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" ]' \ 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,