Skip to content

Commit

Permalink
Update CICD
Browse files Browse the repository at this point in the history
  • Loading branch information
palindaa committed Jan 22, 2025
1 parent 08fa9e5 commit 2ffc2f2
Showing 1 changed file with 14 additions and 24 deletions.
38 changes: 14 additions & 24 deletions .github/workflows/deployment-main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,19 +4,9 @@ on:
push:
branches:
- main

# on:
# workflow_dispatch:
# inputs:
# cluster_type:
# description: 'Enter the cluster type (bd,sl and etc)'
# required: true
# commit_sha:
# description: 'Commit SHA to check for changes'
# required: true
workflow_dispatch:

env:
CONTAINER_NAME_API: api-container
CONTAINER_NAME_TRIAGE: triage-container
CONTAINER_NAME_PUBLISHER: publisher-container

Expand Down Expand Up @@ -118,19 +108,19 @@ jobs:
run: |
npm install
- name: Build, tag, and push the api image to Amazon
# if: steps.api-changes.outputs.api-changes == 'true'
id: build-image-api
env:
ECR_REGISTRY: ${{ steps.login-ecr.outputs.registry }}
ECR_REPOSITORY: iverify-api
IMAGE_TAG: latest
run: |
npx nx build api
docker build -t $ECR_REGISTRY/$ECR_REPOSITORY:$IMAGE_TAG -f ./apps/api/Dockerfile .
echo "Pushing image to ECR..."
docker push $ECR_REGISTRY/$ECR_REPOSITORY:$IMAGE_TAG
echo "::set-output name=image::$ECR_REGISTRY/$ECR_REPOSITORY:$IMAGE_TAG"
# - name: Build, tag, and push the api image to Amazon
# # if: steps.api-changes.outputs.api-changes == 'true'
# id: build-image-api
# env:
# ECR_REGISTRY: ${{ steps.login-ecr.outputs.registry }}
# ECR_REPOSITORY: iverify-api
# IMAGE_TAG: latest
# run: |
# npx nx build api
# docker build -t $ECR_REGISTRY/$ECR_REPOSITORY:$IMAGE_TAG -f ./apps/api/Dockerfile .
# echo "Pushing image to ECR..."
# docker push $ECR_REGISTRY/$ECR_REPOSITORY:$IMAGE_TAG
# echo "::set-output name=image::$ECR_REGISTRY/$ECR_REPOSITORY:$IMAGE_TAG"

- name: Build, tag, and push the publisher image to Amazon
# if: steps.publisher-changes.outputs.publisher-changes == 'true'
Expand Down

0 comments on commit 2ffc2f2

Please sign in to comment.