Skip to content

Commit

Permalink
provision ecr
Browse files Browse the repository at this point in the history
  • Loading branch information
michaelxswe committed Apr 2, 2024
1 parent d62dc03 commit 905ce62
Show file tree
Hide file tree
Showing 2 changed files with 30 additions and 0 deletions.
21 changes: 21 additions & 0 deletions .github/workflows/cicd.yml
Original file line number Diff line number Diff line change
Expand Up @@ -69,3 +69,24 @@ jobs:
run: |
cd tests/integration/
pytest -v --cov
deploy-infrastructure:
needs: integration-test
runs-on: ubuntu-latest
steps:
- name: Check out repository
uses: actions/checkout@v3

- name: Set up AWS credentials
uses: aws-actions/configure-aws-credentials@v1
with:
aws-access-key-id: ${{ secrets.AWS_ACCESS_KEY_ID }}
aws-secret-access-key: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
aws-region: us-east-1

- name: Deploy CloudFormation stack
run: |
aws cloudformation deploy \
--template-file infrastructure/cf.yml \
--stack-name my-stack-name \
--no-fail-on-empty-changeset \
9 changes: 9 additions & 0 deletions infrastructure/cf.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
AWSTemplateFormatVersion: '2010-09-09'
Description: A simple CloudFormation template for creating an ECR repository.

Resources:
MyECRRepository:
Type: 'AWS::ECR::Repository'
Properties:
RepositoryName: Test

0 comments on commit 905ce62

Please sign in to comment.