Skip to content

Commit

Permalink
Update workflows main.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
jrzvnn committed Sep 11, 2023
1 parent c4383dc commit 15d97f8
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 6 deletions.
15 changes: 9 additions & 6 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,12 +18,15 @@ jobs:
aws-access-key-id: ${{ secrets.AWS_ACCESS_KEY_ID }}
aws-secret-access-key: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
aws-region: us-east-1

- name: Login to Amazon ECR
id: Login-ecr
uses: aws-actions/amazon-ecr-login@v1

- name: Run Docker image push script
run: |
chmod +x push_images_to_ecr.sh
./scripts.sh

- name: Build, tag, and push image to Amazon ECR
env:
ECR_REGISTRY: ${{ steps.login-ecr.outputs.registry }}
ECR_REPOSITORY: dk-securecodebox
run: |
chmod +x push_images_to_ecr.sh
./scripts.sh
Empty file added test
Empty file.

0 comments on commit 15d97f8

Please sign in to comment.