Skip to content

Commit

Permalink
chore: web deployment CI rollout completed. Cleaning some code that i…
Browse files Browse the repository at this point in the history
…s no longer needed.
  • Loading branch information
geclos committed Sep 27, 2024
1 parent 1415ff3 commit a8fd4c3
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 13 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ jobs:
with:
workflow_call: true

deploy:
deploy-apps:
needs: [lint, test]
strategy:
matrix:
Expand All @@ -31,6 +31,6 @@ jobs:
secrets: inherit

deploy-web:
# needs: [lint, test] TODO: uncomment
needs: [lint, test]
uses: ./.github/workflows/deploy-web.yml
secrets: inherit
23 changes: 13 additions & 10 deletions .github/workflows/deploy-web.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,8 +34,8 @@ jobs:
echo "changes_detected=false" >> $GITHUB_OUTPUT
fi
deployment:
# TODO: uncomment
# needs: check_changes
needs: check_changes
if: needs.check_changes.outputs.changes_detected == 'true'
runs-on: ubuntu-latest
steps:
- name: Checkout code
Expand Down Expand Up @@ -81,14 +81,13 @@ jobs:
aws-region: eu-central-1
role-skip-session-tagging: true

# TODO: uncomment
# - name: Build & push docker images
# working-directory: apps/infra
# run: |
# echo "Deploying Pulumi stack: docker-production-web"
# pulumi up --stack docker-production-web --yes
# env:
# PULUMI_CONFIG_PASSPHRASE: ${{ secrets.PULUMI_CONFIG_PASSPHRASE }}
- name: Build & push docker images
working-directory: apps/infra
run: |
echo "Deploying Pulumi stack: docker-production-web"
pulumi up --stack docker-production-web --yes
env:
PULUMI_CONFIG_PASSPHRASE: ${{ secrets.PULUMI_CONFIG_PASSPHRASE }}

- name: Deploy with CodeDeploy
working-directory: apps/web
Expand All @@ -100,3 +99,7 @@ jobs:
--application-name LatitudeLLMCodeDeployApp \
--deployment-group-name LatitudeLLMDeploymentGroup \
--revision "{\"revisionType\": \"AppSpecContent\", \"appSpecContent\": {\"content\": $appspec_content}}"
concurrency:
group: production-web
cancel-in-progress: false
2 changes: 1 addition & 1 deletion apps/infra/src/app/production/web.ts
Original file line number Diff line number Diff line change
Expand Up @@ -210,7 +210,7 @@ new aws.codedeploy.DeploymentGroup('LatitudeLLMDeploymentGroup', {
},
terminateBlueInstancesOnDeploymentSuccess: {
action: 'TERMINATE',
terminationWaitTimeInMinutes: 5,
terminationWaitTimeInMinutes: 1,
},
},
deploymentStyle: {
Expand Down

0 comments on commit a8fd4c3

Please sign in to comment.