Skip to content

Commit

Permalink
yaml file update
Browse files Browse the repository at this point in the history
  • Loading branch information
aqib0770 committed Nov 26, 2023
1 parent d79e3e9 commit 0bd64bf
Showing 1 changed file with 28 additions and 28 deletions.
56 changes: 28 additions & 28 deletions .github/workflows/main.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -26,31 +26,31 @@ jobs:
run: echo "Running unit tests"

build-and-push-ecr-image:
name: Continuous Delivery
needs: integration
runs-on: ubuntu-latest
steps:
- name: Checkout Delivery
uses: actions/checkout@v3

- name: Configure 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: ${{ secrets.AWS_DEFAULT_REGION}}

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

- name: Build, tag, and push image to Amazon ECR
id: build-image
env:
IMAGE_TAG: latest
run: |
# Build a docker container and
# push it to ECR so that it can
# be deployed to ECS
docker build -t ${{ secrets.AWS_ECR_REPO_URI}}:$IMAGE_TAG .
docker push ${{ secrets.AWS_ECR_REPO_URI}}:$IMAGE_TAG
name: Continuous Delivery
needs: integration
runs-on: ubuntu-latest
steps:
- name: Checkout Delivery
uses: actions/checkout@v3

- name: Configure 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: ${{ secrets.AWS_DEFAULT_REGION}}

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

- name: Build, tag, and push image to Amazon ECR
id: build-image
env:
IMAGE_TAG: latest
run: |
# Build a docker container and
# push it to ECR so that it can
# be deployed to ECS
docker build -t ${{ secrets.AWS_ECR_REPO_URI}}:$IMAGE_TAG .
docker push ${{ secrets.AWS_ECR_REPO_URI}}:$IMAGE_TAG

0 comments on commit 0bd64bf

Please sign in to comment.