From 5da151f453cee58492a4865287822e74056e7b59 Mon Sep 17 00:00:00 2001 From: Pyry Rouvila Date: Thu, 14 Nov 2024 16:28:51 +0200 Subject: [PATCH] MOSIP fix: update mosip image feat: add mosip-mock chore: add environment variables chore: use commit hashes to update the image fix: use the main tag as sha doesn't work couldn't figure out yet why the sha tag doesn't work :/ fix: use the sha's again to force refresh fix: update the mosip mock sha fix: use the conventional commit hash method debug inputs debug inputs only check reset true remove reset check --- .github/workflows/deploy.yml | 2 -- infrastructure/docker-compose.app.yml | 33 +++++++++++++++++++++++++++ 2 files changed, 33 insertions(+), 2 deletions(-) diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index f61d25a3..ee52aa0f 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -303,7 +303,6 @@ jobs: reset: needs: deploy - if: ${{ inputs.reset == 'true' && needs.deploy.outputs.outcome == 'success' }} uses: ./.github/workflows/clear-environment.yml with: environment: ${{ inputs.stack }} @@ -312,7 +311,6 @@ jobs: seed-data: needs: reset - if: ${{ inputs.reset == 'true' && needs.reset.outputs.outcome == 'success' }} uses: ./.github/workflows/seed-data.yml with: environment: ${{ inputs.stack }} diff --git a/infrastructure/docker-compose.app.yml b/infrastructure/docker-compose.app.yml index 1623e594..cf7c4644 100644 --- a/infrastructure/docker-compose.app.yml +++ b/infrastructure/docker-compose.app.yml @@ -671,6 +671,39 @@ services: aliases: [] dependencies_elasticsearch_net: aliases: [] + + mosip-api: + image: ghcr.io/opencrvs/mosip:4de7d22 + environment: + - NODE_ENV=production + - MOSIP_WEBHOOK_URL=http://mosip-mock.{{STACK}}_app_net:20240 + - OPENCRVS_GRAPHQL_GATEWAY_URL=http://gateway.{{STACK}}_app_net:7070 + deploy: + replicas: 1 + labels: + - 'traefik.enable=false' + networks: + app_net: + dependencies_monitoring_net_2: + aliases: [] + dependencies_traefik_net_1: + aliases: [] + + mosip-mock: + image: ghcr.io/opencrvs/mosip-mock:4de7d22 + environment: + - NODE_ENV=production + - OPENCRVS_MOSIP_SERVER_URL=http://mosip-api.{{STACK}}_app_net:2024 + deploy: + replicas: 1 + labels: + - 'traefik.enable=false' + networks: + app_net: + dependencies_monitoring_net_2: + aliases: [] + dependencies_traefik_net_1: + aliases: [] mongo-on-update: image: mongo:4.4