Skip to content

Commit

Permalink
fix pipeline
Browse files Browse the repository at this point in the history
  • Loading branch information
vdhima committed Jan 21, 2024
1 parent b83c701 commit bb11a0c
Showing 1 changed file with 16 additions and 1 deletion.
17 changes: 16 additions & 1 deletion .github/workflows/terraform.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -63,4 +63,19 @@ jobs:
IMAGE_TAG: ${{ github.sha }}
run: |
docker build -t $ECR_REGISTRY/$ECR_REPOSITORY:$IMAGE_TAG ./api
docker push $ECR_REGISTRY/$ECR_REPOSITORY:$IMAGE_TAG
docker push $ECR_REGISTRY/$ECR_REPOSITORY:$IMAGE_TAG
# Deploy to Kubernetes
- name: Set up Kubectl
uses: azure/setup-kubectl@v1

- name: Deploy to Kubernetes
run: |
kubectl set image deployment/api app=$ECR_REGISTRY/$ECR_REPOSITORY:$IMAGE_TAG
kubectl rollout status deployment/api
# Deploy Frontend to S3
#- name: Deploy Frontend to S3
# run: |
# aws s3 sync ./web_client s3://your-s3-bucket-name --acl public-read
# if: github.ref == 'refs/heads/vasil' # Only deploy on the vasil branch

0 comments on commit bb11a0c

Please sign in to comment.