Skip to content

Commit

Permalink
pipeline testing
Browse files Browse the repository at this point in the history
  • Loading branch information
priyaranjanpatil committed Dec 14, 2023
1 parent e9b38d5 commit a959b29
Showing 1 changed file with 5 additions and 9 deletions.
14 changes: 5 additions & 9 deletions .github/workflows/github-actions.yml
Original file line number Diff line number Diff line change
Expand Up @@ -366,24 +366,20 @@ jobs:
IMAGE_ID=${{ env.ECR_REPOSITORY }}:${{ env.IMAGE_TAG }}
echo "image=$IMAGE_ID" >> $GITHUB_OUTPUT
- name: Build Docker images
run: |
docker-compose -f docker-compose.yml build
- name: Push Docker images to ECR
env:
IMAGE_TAG: ${{ steps.create-image-id.outputs.image }}
CONTAINER_NAME: ${{ env.CONTAINER_NAME }}
LATEST_ID: ${{ steps.prep.outputs.LATEST_ID }}
HOST: ${{ vars.HOST }}
PORT: ${{ vars.PORT }}
ELASTIC_URL: ${{ vars.ELASTIC_URL }}
ELASTIC_KEY: ${{ vars.ELASTIC_KEY }}
run: |
docker-compose -f docker-compose.yml build
- name: Push Docker images to ECR
env:
ACCOUNT_ID: "704910415367.dkr.ecr.ap-southeast-2.amazonaws.com"
ELASTIC_KEY: ${{ vars.ELASTIC_KEY }}
run: |
#aws ecr get-login-password --region ap-southeast-2 | docker login --username AWS --password-stdin ${{ env.ACCOUNT_ID }}
docker-compose -f docker-compose.yml push
- name: Deploy to ECS Fargate
Expand Down

0 comments on commit a959b29

Please sign in to comment.