Skip to content

Commit

Permalink
cdk wip
Browse files Browse the repository at this point in the history
  • Loading branch information
prenagha committed Aug 15, 2024
1 parent 052d304 commit c485dd8
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 231 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/01-bootstrap-ecr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -38,10 +38,10 @@ jobs:
working-directory: cdk
run: npm install

- name: Deploy CDK bootstrap stack
- name: CDK Bootstrap
working-directory: cdk
run: npm run bootstrap

- name: Deploy Docker registry
- name: Deploy Docker Registry stack
working-directory: cdk
run: npm run repository:deploy
10 changes: 9 additions & 1 deletion .github/workflows/02-network.yml
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,14 @@ jobs:
working-directory: cdk
run: npm install

- name: Deploy network stack
- name: Deploy Network stack
working-directory: cdk
run: npm run network:deploy -- -c environmentName=${{ github.event.inputs.environmentName }}

- name: Deploy Certificate stack
working-directory: cdk
run: npm run certificate:deploy -- -c environmentName=${{ github.event.inputs.environmentName }}

- name: Deploy DNS stack
working-directory: cdk
run: npm run domain:deploy -- -c environmentName=${{ github.event.inputs.environmentName }}
226 changes: 0 additions & 226 deletions .github/workflows/03-todo-infra.yml

This file was deleted.

4 changes: 2 additions & 2 deletions .github/workflows/04-todo-deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ jobs:
id: dockerImageTag
run: echo "tag=$(date +'%Y%m%d%H%M%S')-${GITHUB_SHA}" >> $GITHUB_OUTPUT

- name: Publish Docker image to ECR registry
- name: Publish Docker image to ECR
if: github.ref == 'refs/heads/main' || contains(github.event.head_commit.message, 'DEPLOY NOW')
env:
DOCKER_IMAGE_TAG: ${{ steps.dockerImageTag.outputs.tag }}
Expand Down Expand Up @@ -114,7 +114,7 @@ jobs:
working-directory: cdk
run: npm install

- name: Deploy service stack
- name: Deploy Service stack
working-directory: cdk
run: npm run service:deploy -- -c dockerImageTag=${{ needs.build-and-publish.outputs.dockerImageTag }}

Expand Down

0 comments on commit c485dd8

Please sign in to comment.