Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions .github/workflows/deploy-dev.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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" \
Expand All @@ -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"
]' \
Expand Down
4 changes: 2 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "ionicapp",
"version": "0.0.7",
"version": "0.0.8",
"description": "",
"author": "",
"private": true,
Expand Down
Loading