Skip to content

Commit 33247ce

Browse files
committed
Docker image build and ecr repository
1 parent c9e7f3e commit 33247ce

1 file changed

Lines changed: 24 additions & 1 deletion

File tree

.github/workflows/main.yaml

Lines changed: 24 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,4 +19,27 @@ jobs:
1919
run: echo "Linting repository"
2020

2121
- name: Run unit tests
22-
run: echo "Running unit tests"
22+
run: echo "Running unit tests"
23+
24+
build-and-push-ecr-image:
25+
name: Continuous Delivery
26+
needs: integration
27+
runs-on: ubuntu-latest
28+
steps:
29+
- name: Checkout Code
30+
uses: actions/checkout@v3
31+
32+
- name: Install Utilities
33+
run: |
34+
sudo apt-get update
35+
sudo apt-get install -y jq unzip
36+
- name: Configure AWS credentials
37+
uses: aws-actions/configure-aws-credentials@v1
38+
with:
39+
aws-access-key-id: ${{ secrets.AWS_ACCESS_KEY_ID }}
40+
aws-secret-access-key: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
41+
aws-region: ${{ secrets.AWS_REGION }}
42+
43+
- name: Login to Amazon ECR
44+
id: login-ecr
45+
uses: aws-actions/amazon-ecr-login@v1

0 commit comments

Comments
 (0)