From 4be4d52746dfe922be2322a2f9d4474bf2627acb Mon Sep 17 00:00:00 2001 From: Sheetal Date: Tue, 16 Apr 2024 20:45:25 +0530 Subject: [PATCH] pipeline implemetation --- .github/workflows/dev-agent-provisioning.yml | 4 ++-- .github/workflows/dev-connection.yml | 8 ++++---- .github/workflows/dev-ecosystem.yml | 8 ++++---- .github/workflows/dev-issuance.yml | 8 ++++---- .github/workflows/dev-ledger.yml | 8 ++++---- .github/workflows/dev-organization.yml | 2 +- .github/workflows/dev-utility.yml | 2 +- .github/workflows/dev-verification.yml | 2 +- .github/workflows/dev-webhook.yml | 2 +- 9 files changed, 22 insertions(+), 22 deletions(-) diff --git a/.github/workflows/dev-agent-provisioning.yml b/.github/workflows/dev-agent-provisioning.yml index f82ae4a0d..20705d959 100644 --- a/.github/workflows/dev-agent-provisioning.yml +++ b/.github/workflows/dev-agent-provisioning.yml @@ -73,7 +73,7 @@ jobs: run: | FAMILY=$(sed -n 's/.*"family": "\(.*\)",/\1/p' taskdef/agent-provisioning.json) NAME=$(sed -n 's/.*"name": "\(.*\)",/\1/p' taskdef/agent-provisioning.json) - SERVICE_NAME="${NAME}-service" + SERVICE_NAME="${NAME}_service" echo "SERVICE_NAME: ${SERVICE_NAME}" # Replace placeholders in the JSON file @@ -89,7 +89,7 @@ jobs: run: | FAMILY=$(sed -n 's/.*"family": "\(.*\)",/\1/p' taskdef/user-service.json) NAME=$(sed -n 's/.*"name": "\(.*\)",/\1/p' taskdef/user-service.json) - SERVICE_NAME="${NAME}-service" + SERVICE_NAME="${NAME}_service" # Replace placeholders in the JSON file sed -e "s;%BUILD_NUMBER%;${{ github.run_number }};g" -e "s;%REPOSITORY_URI%;${REPOSITORY_URI};g" taskdef/user-service.json > ${GITHUB_WORKSPACE}/${NAME}-v_${{ github.run_number }}.json diff --git a/.github/workflows/dev-connection.yml b/.github/workflows/dev-connection.yml index e95b0caa0..d3a44cc7f 100644 --- a/.github/workflows/dev-connection.yml +++ b/.github/workflows/dev-connection.yml @@ -4,9 +4,9 @@ on: push: branches: - pipeline-implementation - paths: - - 'apps/connection/**' - workflow_dispatch: + # paths: + # - 'apps/connection/**' + # workflow_dispatch: env: ECR_IMAGE_TAG: "CONNECTION_V_${{ github.run_number }}" @@ -73,7 +73,7 @@ jobs: run: | FAMILY=$(sed -n 's/.*"family": "\(.*\)",/\1/p' taskdef/connection-service.json) NAME=$(sed -n 's/.*"name": "\(.*\)",/\1/p' taskdef/connection-service.json) - SERVICE_NAME="${NAME}-service" + SERVICE_NAME="${NAME}_service" # Replace placeholders in the JSON file sed -e "s;%BUILD_NUMBER%;${{ github.run_number }};g" -e "s;%REPOSITORY_URI%;${REPOSITORY_URI};g" taskdef/connection-service.json > ${GITHUB_WORKSPACE}/${NAME}-v_${{ github.run_number }}.json diff --git a/.github/workflows/dev-ecosystem.yml b/.github/workflows/dev-ecosystem.yml index d89930974..f9e18700d 100644 --- a/.github/workflows/dev-ecosystem.yml +++ b/.github/workflows/dev-ecosystem.yml @@ -4,9 +4,9 @@ on: push: branches: - pipeline-implementation - paths: - - 'apps/ecosystem/**' - workflow_dispatch: + # paths: + # - 'apps/ecosystem/**' + # workflow_dispatch: env: ECR_IMAGE_TAG: "ECOSYSTEM_V_${{ github.run_number }}" @@ -73,7 +73,7 @@ jobs: run: | FAMILY=$(sed -n 's/.*"family": "\(.*\)",/\1/p' taskdef/ecosystem-service.json) NAME=$(sed -n 's/.*"name": "\(.*\)",/\1/p' taskdef/ecosystem-service.json) - SERVICE_NAME="${NAME}-service" + SERVICE_NAME="${NAME}_service" # Replace placeholders in the JSON file sed -e "s;%BUILD_NUMBER%;${{ github.run_number }};g" -e "s;%REPOSITORY_URI%;${REPOSITORY_URI};g" taskdef/ecosystem-service.json > ${GITHUB_WORKSPACE}/${NAME}-v_${{ github.run_number }}.json diff --git a/.github/workflows/dev-issuance.yml b/.github/workflows/dev-issuance.yml index f4625aad0..d810e323f 100644 --- a/.github/workflows/dev-issuance.yml +++ b/.github/workflows/dev-issuance.yml @@ -4,9 +4,9 @@ on: push: branches: - pipeline-implementation - paths: - - 'apps/issuance/**' - workflow_dispatch: + # paths: + # - 'apps/issuance/**' + # workflow_dispatch: env: ECR_IMAGE_TAG: "ISSUANCE_V_${{ github.run_number }}" @@ -73,7 +73,7 @@ jobs: run: | FAMILY=$(sed -n 's/.*"family": "\(.*\)",/\1/p' taskdef/issuance-service.json) NAME=$(sed -n 's/.*"name": "\(.*\)",/\1/p' taskdef/issuance-service.json) - SERVICE_NAME="${NAME}-service" + SERVICE_NAME="${NAME}_service" # Replace placeholders in the JSON file sed -e "s;%BUILD_NUMBER%;${{ github.run_number }};g" -e "s;%REPOSITORY_URI%;${REPOSITORY_URI};g" taskdef/issuance-service.json > ${GITHUB_WORKSPACE}/${NAME}-v_${{ github.run_number }}.json diff --git a/.github/workflows/dev-ledger.yml b/.github/workflows/dev-ledger.yml index 9990b953d..17dd1f221 100644 --- a/.github/workflows/dev-ledger.yml +++ b/.github/workflows/dev-ledger.yml @@ -4,9 +4,9 @@ on: push: branches: - pipeline-implementation - paths: - - 'apps/user/**' - workflow_dispatch: + # paths: + # - 'apps/user/**' + # workflow_dispatch: env: ECR_IMAGE_TAG: "LEDGER_V_${{ github.run_number }}" @@ -73,7 +73,7 @@ jobs: run: | FAMILY=$(sed -n 's/.*"family": "\(.*\)",/\1/p' taskdef/ledger-service.json) NAME=$(sed -n 's/.*"name": "\(.*\)",/\1/p' taskdef/ledger-service.json) - SERVICE_NAME="${NAME}-service" + SERVICE_NAME="${NAME}_service" # Replace placeholders in the JSON file sed -e "s;%BUILD_NUMBER%;${{ github.run_number }};g" -e "s;%REPOSITORY_URI%;${REPOSITORY_URI};g" taskdef/ledger-service.json > ${GITHUB_WORKSPACE}/${NAME}-v_${{ github.run_number }}.json diff --git a/.github/workflows/dev-organization.yml b/.github/workflows/dev-organization.yml index 4ceae3d57..74fa7d0c4 100644 --- a/.github/workflows/dev-organization.yml +++ b/.github/workflows/dev-organization.yml @@ -73,7 +73,7 @@ jobs: run: | FAMILY=$(sed -n 's/.*"family": "\(.*\)",/\1/p' taskdef/organization-service.json) NAME=$(sed -n 's/.*"name": "\(.*\)",/\1/p' taskdef/organization-service.json) - SERVICE_NAME="${NAME}-service" + SERVICE_NAME="${NAME}_service" # Replace placeholders in the JSON file sed -e "s;%BUILD_NUMBER%;${{ github.run_number }};g" -e "s;%REPOSITORY_URI%;${REPOSITORY_URI};g" taskdef/organization-service.json > ${GITHUB_WORKSPACE}/${NAME}-v_${{ github.run_number }}.json diff --git a/.github/workflows/dev-utility.yml b/.github/workflows/dev-utility.yml index 056b0f1fc..d3f91ba38 100644 --- a/.github/workflows/dev-utility.yml +++ b/.github/workflows/dev-utility.yml @@ -73,7 +73,7 @@ jobs: run: | FAMILY=$(sed -n 's/.*"family": "\(.*\)",/\1/p' taskdef/utility-service.json) NAME=$(sed -n 's/.*"name": "\(.*\)",/\1/p' taskdef/utility-service.json) - SERVICE_NAME="${NAME}-service" + SERVICE_NAME="${NAME}_service" # Replace placeholders in the JSON file sed -e "s;%BUILD_NUMBER%;${{ github.run_number }};g" -e "s;%REPOSITORY_URI%;${REPOSITORY_URI};g" taskdef/utility-service.json > ${GITHUB_WORKSPACE}/${NAME}-v_${{ github.run_number }}.json diff --git a/.github/workflows/dev-verification.yml b/.github/workflows/dev-verification.yml index 5202e43be..34dcdfd88 100644 --- a/.github/workflows/dev-verification.yml +++ b/.github/workflows/dev-verification.yml @@ -73,7 +73,7 @@ jobs: run: | FAMILY=$(sed -n 's/.*"family": "\(.*\)",/\1/p' taskdef/verification-service.json) NAME=$(sed -n 's/.*"name": "\(.*\)",/\1/p' taskdef/verification-service.json) - SERVICE_NAME="${NAME}-service" + SERVICE_NAME="${NAME}_service" # Replace placeholders in the JSON file sed -e "s;%BUILD_NUMBER%;${{ github.run_number }};g" -e "s;%REPOSITORY_URI%;${REPOSITORY_URI};g" taskdef/verification-service.json > ${GITHUB_WORKSPACE}/${NAME}-v_${{ github.run_number }}.json diff --git a/.github/workflows/dev-webhook.yml b/.github/workflows/dev-webhook.yml index 7fd377458..2b619afdc 100644 --- a/.github/workflows/dev-webhook.yml +++ b/.github/workflows/dev-webhook.yml @@ -73,7 +73,7 @@ jobs: run: | FAMILY=$(sed -n 's/.*"family": "\(.*\)",/\1/p' taskdef/webhook-service.json) NAME=$(sed -n 's/.*"name": "\(.*\)",/\1/p' taskdef/webhook-service.json) - SERVICE_NAME="${NAME}-service" + SERVICE_NAME="${NAME}_service" # Replace placeholders in the JSON file sed -e "s;%BUILD_NUMBER%;${{ github.run_number }};g" -e "s;%REPOSITORY_URI%;${REPOSITORY_URI};g" taskdef/webhook-service.json > ${GITHUB_WORKSPACE}/${NAME}-v_${{ github.run_number }}.json