From bd911e1e5d07ff8b6154b1bc33189bc38bb04b8d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Pawe=C5=82=20Placzy=C5=84ski?= Date: Mon, 15 Jul 2024 11:10:10 +0200 Subject: [PATCH 1/3] [#1538] Update Cardano Node and DB Sync versions in dev environment Bumped the versions of Cardano Node and Cardano DB Sync in the development environment to ensure compatibility with the latest features and fixes. Updated the `docker-compose.node+dbsync.yml` file to use `cardano-node:9.0.0-sancho` and `cardano-db-sync:sancho-5.1.0`. This change addresses the need to stay current with upstream improvements and ensures that our development environment remains in line with the latest network protocols. --- scripts/govtool/docker-compose.node+dbsync.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/scripts/govtool/docker-compose.node+dbsync.yml b/scripts/govtool/docker-compose.node+dbsync.yml index 0f8ca6a9f..a4cbf202c 100644 --- a/scripts/govtool/docker-compose.node+dbsync.yml +++ b/scripts/govtool/docker-compose.node+dbsync.yml @@ -51,7 +51,7 @@ services: retries: 5 cardano-node: - image: ghcr.io/intersectmbo/cardano-node:8.11.0-sancho + image: ghcr.io/intersectmbo/cardano-node:9.0.0-sancho environment: - NETWORK=sanchonet volumes: @@ -65,7 +65,7 @@ services: retries: 10 cardano-db-sync: - image: ghcr.io/intersectmbo/cardano-db-sync:sancho-4-3-0-docker + image: ghcr.io/intersectmbo/cardano-db-sync:sancho-5.1.0 environment: - NETWORK=sanchonet - POSTGRES_HOST=postgres From a842bd262482a3374b2c31e2141ba659edd4998d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Pawe=C5=82=20Placzy=C5=84ski?= Date: Mon, 15 Jul 2024 12:04:25 +0200 Subject: [PATCH 2/3] [#1538] Update Cardano DB Sync and Node versions Upgraded the Cardano Node to version 9.0.0-sancho and Cardano DB Sync to sancho-5.1.0 in the `scripts/govtool/Makefile`. This adjustment ensures compatibility with the latest network protocols and incorporates recent fixes and features. This change is essential for maintaining synchronicity with the updated Cardano protocol and supports upcoming governance functionalities. This commit paves the way for further testing in staging environments, aiming to confirm stability and prevent any major issues or downtime in the beta environment. --- scripts/govtool/Makefile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/scripts/govtool/Makefile b/scripts/govtool/Makefile index c51d00eed..89a76eac3 100644 --- a/scripts/govtool/Makefile +++ b/scripts/govtool/Makefile @@ -10,8 +10,8 @@ include config.mk .DEFAULT_GOAL := info # image tags -cardano_node_image_tag := 8.11.0-sancho -cardano_db_sync_image_tag := sancho-4-3-0-docker +cardano_node_image_tag := 9.0.0-sancho +cardano_db_sync_image_tag := sancho-5.1.0 .PHONY: all all: deploy-stack notify From e2e17d921b9b1b33ce3bbf7180e0915bece2843a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Pawe=C5=82=20Placzy=C5=84ski?= Date: Mon, 15 Jul 2024 13:48:39 +0200 Subject: [PATCH 3/3] Update resync workflow to align with deployment workflow configuration Added new inputs and environment variables to the resync workflow to reflect the configuration used in the deployment workflow. This includes enabling the proposal discussion forum, forcing rebuild of Docker images, and additional environment variables for Grafana, Google Analytics, and Sentry integrations. This ensures consistency between workflows and supports a smooth update process for Cardano Node and DB Sync versions in various environments. --- .../resync-cardano-node-and-db-sync.yml | 40 ++++++++++++++----- 1 file changed, 31 insertions(+), 9 deletions(-) diff --git a/.github/workflows/resync-cardano-node-and-db-sync.yml b/.github/workflows/resync-cardano-node-and-db-sync.yml index 1cb7c567d..12dcc19af 100644 --- a/.github/workflows/resync-cardano-node-and-db-sync.yml +++ b/.github/workflows/resync-cardano-node-and-db-sync.yml @@ -13,10 +13,27 @@ on: - "test" - "staging" - "beta" + isProposalDiscussionForumEnabled: + description: "Enable proposal discussion forum" + required: true + type: choice + default: "disabled" + options: + - "enabled" + - "disabled" + forceRebuildDockerImages: + description: "Force rebuild the docker images" + required: false + type: choice + default: "false" + options: + - "true" + - "false" env: ENVIRONMENT: ${{ inputs.environment || 'dev' }} CARDANO_NETWORK: "sanchonet" + FORCE_REBUILD: ${{inputs.forceRebuildDockerImages == 'true'}} jobs: deploy: @@ -27,22 +44,27 @@ jobs: working-directory: ./scripts/govtool env: DBSYNC_POSTGRES_DB: "cexplorer" - DBSYNC_POSTGRES_USER: "postgres" DBSYNC_POSTGRES_PASSWORD: "pSa8JCpQOACMUdGb" + DBSYNC_POSTGRES_USER: "postgres" + GA_CLIENT_EMAIL: ${{ secrets.GA_CLIENT_EMAIL }} + GA_PRIVATE_KEY: ${{ secrets.GA_PRIVATE_KEY }} GRAFANA_ADMIN_PASSWORD: ${{ secrets.GRAFANA_ADMIN_PASSWORD }} - GRAFANA_SLACK_RECIPIENT: ${{ secrets.GRAFANA_SLACK_RECIPIENT }} GRAFANA_SLACK_OAUTH_TOKEN: ${{ secrets.GRAFANA_SLACK_OAUTH_TOKEN }} - DEV_NGINX_BASIC_AUTH: ${{ secrets.DEV_NGINX_BASIC_AUTH }} - TEST_NGINX_BASIC_AUTH: ${{ secrets.TEST_NGINX_BASIC_AUTH }} - STAGING_NGINX_BASIC_AUTH: ${{ secrets.STAGING_NGINX_BASIC_AUTH }} - SENTRY_DSN_BACKEND: ${{ secrets.SENTRY_DSN_BACKEND }} - TRAEFIK_LE_EMAIL: "admin+govtool@binarapps.com" + GRAFANA_SLACK_RECIPIENT: ${{ secrets.GRAFANA_SLACK_RECIPIENT }} GTM_ID: ${{ secrets.GTM_ID }} NPMRC_TOKEN: ${{ secrets.NPMRC_TOKEN }} - SENTRY_DSN: ${{ secrets.SENTRY_DSN_FRONTEND }} - PIPELINE_URL: https://github.com/${{ github.repository }}/actions/runs/${{ github.run_id }} IP_ADDRESS_BYPASSING_BASIC_AUTH1: ${{ secrets.IP_ADDRESS_BYPASSING_BASIC_AUTH1 }} IP_ADDRESS_BYPASSING_BASIC_AUTH2: ${{ secrets.IP_ADDRESS_BYPASSING_BASIC_AUTH2 }} + NEXT_PUBLIC_API_URL: "https://participation.sanchogov.tools" + NEXT_PUBLIC_GA4_PROPERTY_ID: ${{ secrets.NEXT_PUBLIC_GA4_PROPERTY_ID }} + DEV_NGINX_BASIC_AUTH: ${{ secrets.DEV_NGINX_BASIC_AUTH }} + PIPELINE_URL: https://github.com/${{ github.repository }}/actions/runs/${{ github.run_id }} + SENTRY_DSN: ${{ secrets.SENTRY_DSN_FRONTEND }} + SENTRY_DSN_BACKEND: ${{ secrets.SENTRY_DSN_BACKEND }} + SENTRY_IGNORE_API_RESOLUTION_ERROR: "1" + TRAEFIK_LE_EMAIL: "admin+govtool@binarapps.com" + USERSNAP_SPACE_API_KEY: ${{ secrets.USERSNAP_SPACE_API_KEY }} + IS_PROPOSAL_DISCUSSION_FORUM_ENABLED: ${{ inputs.isProposalDiscussionForumEnabled == 'enabled' }} steps: - name: Checkout code uses: actions/checkout@v3