Skip to content

Commit

Permalink
Merge pull request #2 from Bhutan-NDI/pipeline-implementation
Browse files Browse the repository at this point in the history
pipeline changes
  • Loading branch information
Sheetal-ayanworks authored Apr 17, 2024
2 parents d6dbfd2 + 698cf28 commit 7ec94fd
Show file tree
Hide file tree
Showing 13 changed files with 18 additions and 48 deletions.
4 changes: 3 additions & 1 deletion .github/workflows/dev-agent.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,9 @@ on:


env:
ECR_IMAGE_TAG: "AGENT_v_${{ github.run_number }}"

ECR_IMAGE_TAG: "AGENT_V_${{ github.run_number }}"

ECR_REPOSITORY: "dev-services"
AWS_REGION: "ap-southeast-1"
CLUSTER: "DEV-NGOTAG-CLUSTER"
Expand Down
11 changes: 4 additions & 7 deletions .github/workflows/dev-api-gateway.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,12 +4,9 @@ on:
push:
branches:
- develop
paths:
- 'apps/api-gateway/**'
workflow_dispatch:


env:
ECR_IMAGE_TAG: "AGENT_V_${{ github.run_number }}"
ECR_IMAGE_TAG: "API-GATEWAY_V_${{ github.run_number }}"
ECR_REPOSITORY: "dev-services"
AWS_REGION: "ap-southeast-1"
CLUSTER: "DEV-NGOTAG-CLUSTER"
Expand Down Expand Up @@ -42,7 +39,7 @@ jobs:
env:
ECR_REGISTRY: ${{ steps.login-ecr.outputs.registry }}
ECR_REPOSITORY: dev-services
IMAGE_TAG: "AGENT_V_${{ github.run_number }}"
IMAGE_TAG: "API-GATEWAY_V_${{ github.run_number }}"
run: |
docker build -t $ECR_REGISTRY/$ECR_REPOSITORY:$IMAGE_TAG -f Dockerfiles/Dockerfile.api-gateway .
docker push $ECR_REGISTRY/$ECR_REPOSITORY:$IMAGE_TAG
Expand All @@ -52,7 +49,7 @@ jobs:
run: |
echo "ECR_REGISTRY=${{ steps.login-ecr.outputs.registry }}" >> $GITHUB_ENV
echo "ECR_REPOSITORY=dev-services" >> $GITHUB_ENV
echo "IMAGE_TAG=AGENT_V_${{ github.run_number }}" >> $GITHUB_ENV
echo "IMAGE_TAG=API-GATEWAY_V_${{ github.run_number }}" >> $GITHUB_ENV
- name: Print environment variables
run: |
Expand Down
5 changes: 1 addition & 4 deletions .github/workflows/dev-connection.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,7 @@ on:
push:
branches:
- develop
paths:
- 'apps/connection/**'
workflow_dispatch:


env:
ECR_IMAGE_TAG: "CONNECTION_V_${{ github.run_number }}"
ECR_REPOSITORY: "dev-services"
Expand Down
4 changes: 1 addition & 3 deletions .github/workflows/dev-ecosystem.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,7 @@ on:
push:
branches:
- develop
paths:
- 'apps/ecosystem/**'
workflow_dispatch:


env:
ECR_IMAGE_TAG: "ECOSYSTEM_V_${{ github.run_number }}"
Expand Down
5 changes: 1 addition & 4 deletions .github/workflows/dev-issuance.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,7 @@ on:
push:
branches:
- develop
paths:
- 'apps/issuance/**'
workflow_dispatch:


env:
ECR_IMAGE_TAG: "ISSUANCE_V_${{ github.run_number }}"
ECR_REPOSITORY: "dev-services"
Expand Down
4 changes: 1 addition & 3 deletions .github/workflows/dev-ledger.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,7 @@ on:
push:
branches:
- develop
paths:
- 'apps/ledger/**'
workflow_dispatch:


env:
ECR_IMAGE_TAG: "LEDGER_V_${{ github.run_number }}"
Expand Down
4 changes: 1 addition & 3 deletions .github/workflows/dev-notification-webhook.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,7 @@ on:
push:
branches:
- pipeline-implementation
paths:
- 'apps/user/**'
workflow_dispatch:


env:
ECR_IMAGE_TAG: "USER_v_${{ github.run_number }}"
Expand Down
5 changes: 1 addition & 4 deletions .github/workflows/dev-notification.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,7 @@ on:
push:
branches:
- develop
paths:
- 'apps/notification/**'
workflow_dispatch:


env:
ECR_IMAGE_TAG: "NOTIFICATION_V_${{ github.run_number }}"
ECR_REPOSITORY: "dev-services"
Expand Down
5 changes: 1 addition & 4 deletions .github/workflows/dev-organization.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,7 @@ on:
push:
branches:
- develop
paths:
- 'apps/organization/**'
workflow_dispatch:


env:
ECR_IMAGE_TAG: "ORGANIZATION_V_${{ github.run_number }}"
ECR_REPOSITORY: "dev-services"
Expand Down
5 changes: 1 addition & 4 deletions .github/workflows/dev-user.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,7 @@ on:
push:
branches:
- develop
paths:
- 'apps/user/**'
workflow_dispatch:


env:
ECR_IMAGE_TAG: "USER_v_${{ github.run_number }}"
ECR_REPOSITORY: "dev-services"
Expand Down
5 changes: 1 addition & 4 deletions .github/workflows/dev-utility.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,7 @@ on:
push:
branches:
- develop
paths:
- 'apps/utility/**'
workflow_dispatch:


env:
ECR_IMAGE_TAG: "UTILITY_V_${{ github.run_number }}"
ECR_REPOSITORY: "dev-services"
Expand Down
5 changes: 1 addition & 4 deletions .github/workflows/dev-verification.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,7 @@ on:
push:
branches:
- develop
paths:
- 'apps/webhook/**'
workflow_dispatch:


env:
ECR_IMAGE_TAG: "VERIFICATION_V_${{ github.run_number }}"
ECR_REPOSITORY: "dev-services"
Expand Down
4 changes: 1 addition & 3 deletions .github/workflows/dev-webhook.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,7 @@ on:
push:
branches:
- develop
paths:
- 'apps/webhook/**'
workflow_dispatch:


env:
ECR_IMAGE_TAG: "WEBHOOK_V_${{ github.run_number }}"
Expand Down

0 comments on commit 7ec94fd

Please sign in to comment.