From ba73db6b1b2759fe0350b23724c90c7bc9516c08 Mon Sep 17 00:00:00 2001 From: Ilya Date: Wed, 23 Oct 2024 14:45:05 +0200 Subject: [PATCH] use vars instead of envs (#27) --- .github/workflows/publis-container-dev.yaml | 20 ++++++++++---------- .github/workflows/push-container.yaml | 20 ++++++++++---------- 2 files changed, 20 insertions(+), 20 deletions(-) diff --git a/.github/workflows/publis-container-dev.yaml b/.github/workflows/publis-container-dev.yaml index b9aaa51..b5361be 100644 --- a/.github/workflows/publis-container-dev.yaml +++ b/.github/workflows/publis-container-dev.yaml @@ -42,37 +42,37 @@ jobs: cd driver-did-iden3 echo -e "polygon:" > resolvers.settings.yaml echo -e " amoy:" >> resolvers.settings.yaml - echo -e " contractAddress: ${{ env.STATE_POLYGON_AMOY }}" >> resolvers.settings.yaml + echo -e " contractAddress: ${{ vars.STATE_POLYGON_AMOY }}" >> resolvers.settings.yaml echo -e " networkURL: ${{ secrets.RPC_POLYGON_AMOY }}" >> resolvers.settings.yaml echo -e " main:" >> resolvers.settings.yaml - echo -e " contractAddress: ${{ env.STATE_POLYGON_MAIN }}" >> resolvers.settings.yaml + echo -e " contractAddress: ${{ vars.STATE_POLYGON_MAIN }}" >> resolvers.settings.yaml echo -e " networkURL: ${{ secrets.RPC_POLYGON_MAIN }}" >> resolvers.settings.yaml echo -e " cardona:" >> resolvers.settings.yaml - echo -e " contractAddress: ${{ env.STATE_UNIFIED }}" >> resolvers.settings.yaml + echo -e " contractAddress: ${{ vars.STATE_UNIFIED }}" >> resolvers.settings.yaml echo -e " networkURL: ${{ secrets.RPC_POLYGON_ZKEVM_CARDONA }}" >> resolvers.settings.yaml echo -e " zkevm:" >> resolvers.settings.yaml - echo -e " contractAddress: ${{ env.STATE_UNIFIED }}" >> resolvers.settings.yaml + echo -e " contractAddress: ${{ vars.STATE_UNIFIED }}" >> resolvers.settings.yaml echo -e " networkURL: ${{ secrets.RPC_POLYGON_ZKEVM_MAIN }}" >> resolvers.settings.yaml echo -e "privado:" >> resolvers.settings.yaml echo -e " main:" >> resolvers.settings.yaml - echo -e " contractAddress: ${{ env.STATE_UNIFIED }}" >> resolvers.settings.yaml + echo -e " contractAddress: ${{ vars.STATE_UNIFIED }}" >> resolvers.settings.yaml echo -e " networkURL: ${{ secrets.RPC_PRIVADO_MAIN }}" >> resolvers.settings.yaml echo -e " test:" >> resolvers.settings.yaml - echo -e " contractAddress: ${{ env.STATE_UNIFIED }}" >> resolvers.settings.yaml + echo -e " contractAddress: ${{ vars.STATE_UNIFIED }}" >> resolvers.settings.yaml echo -e " networkURL: ${{ secrets.RPC_PRIVADO_TEST }}" >> resolvers.settings.yaml echo -e "eth:" >> resolvers.settings.yaml echo -e " main:" >> resolvers.settings.yaml - echo -e " contractAddress: ${{ env.STATE_UNIFIED }}" >> resolvers.settings.yaml + echo -e " contractAddress: ${{ vars.STATE_UNIFIED }}" >> resolvers.settings.yaml echo -e " networkURL: ${{ secrets.RPC_ETHEREUM_MAIN }}" >> resolvers.settings.yaml echo -e " sepolia:" >> resolvers.settings.yaml - echo -e " contractAddress: ${{ env.STATE_UNIFIED }}" >> resolvers.settings.yaml + echo -e " contractAddress: ${{ vars.STATE_UNIFIED }}" >> resolvers.settings.yaml echo -e " networkURL: ${{ secrets.RPC_ETHEREUM_SEPOLIA }}" >> resolvers.settings.yaml echo -e "linea:" >> resolvers.settings.yaml echo -e " main:" >> resolvers.settings.yaml - echo -e " contractAddress: ${{ env.STATE_UNIFIED }}" >> resolvers.settings.yaml + echo -e " contractAddress: ${{ vars.STATE_UNIFIED }}" >> resolvers.settings.yaml echo -e " networkURL: ${{ secrets.RPC_LINEA_MAIN }}" >> resolvers.settings.yaml echo -e " sepolia:" >> resolvers.settings.yaml - echo -e " contractAddress: ${{ env.STATE_UNIFIED }}" >> resolvers.settings.yaml + echo -e " contractAddress: ${{ vars.STATE_UNIFIED }}" >> resolvers.settings.yaml echo -e " networkURL: ${{ secrets.RPC_LINEA_SEPOLIA }}" >> resolvers.settings.yaml - name: Set up Docker Buildx diff --git a/.github/workflows/push-container.yaml b/.github/workflows/push-container.yaml index 6510a4f..9be3a8c 100644 --- a/.github/workflows/push-container.yaml +++ b/.github/workflows/push-container.yaml @@ -29,37 +29,37 @@ jobs: cd driver-did-iden3 echo -e "polygon:" > resolvers.settings.yaml echo -e " amoy:" >> resolvers.settings.yaml - echo -e " contractAddress: ${{ env.STATE_POLYGON_AMOY }}" >> resolvers.settings.yaml + echo -e " contractAddress: ${{ vars.STATE_POLYGON_AMOY }}" >> resolvers.settings.yaml echo -e " networkURL: ${{ secrets.RPC_POLYGON_AMOY }}" >> resolvers.settings.yaml echo -e " main:" >> resolvers.settings.yaml - echo -e " contractAddress: ${{ env.STATE_POLYGON_MAIN }}" >> resolvers.settings.yaml + echo -e " contractAddress: ${{ vars.STATE_POLYGON_MAIN }}" >> resolvers.settings.yaml echo -e " networkURL: ${{ secrets.RPC_POLYGON_MAIN }}" >> resolvers.settings.yaml echo -e " cardona:" >> resolvers.settings.yaml - echo -e " contractAddress: ${{ env.STATE_UNIFIED }}" >> resolvers.settings.yaml + echo -e " contractAddress: ${{ vars.STATE_UNIFIED }}" >> resolvers.settings.yaml echo -e " networkURL: ${{ secrets.RPC_POLYGON_ZKEVM_CARDONA }}" >> resolvers.settings.yaml echo -e " zkevm:" >> resolvers.settings.yaml - echo -e " contractAddress: ${{ env.STATE_UNIFIED }}" >> resolvers.settings.yaml + echo -e " contractAddress: ${{ vars.STATE_UNIFIED }}" >> resolvers.settings.yaml echo -e " networkURL: ${{ secrets.RPC_POLYGON_ZKEVM_MAIN }}" >> resolvers.settings.yaml echo -e "privado:" >> resolvers.settings.yaml echo -e " main:" >> resolvers.settings.yaml - echo -e " contractAddress: ${{ env.STATE_UNIFIED }}" >> resolvers.settings.yaml + echo -e " contractAddress: ${{ vars.STATE_UNIFIED }}" >> resolvers.settings.yaml echo -e " networkURL: ${{ secrets.RPC_PRIVADO_MAIN }}" >> resolvers.settings.yaml echo -e " test:" >> resolvers.settings.yaml - echo -e " contractAddress: ${{ env.STATE_UNIFIED }}" >> resolvers.settings.yaml + echo -e " contractAddress: ${{ vars.STATE_UNIFIED }}" >> resolvers.settings.yaml echo -e " networkURL: ${{ secrets.RPC_PRIVADO_TEST }}" >> resolvers.settings.yaml echo -e "eth:" >> resolvers.settings.yaml echo -e " main:" >> resolvers.settings.yaml - echo -e " contractAddress: ${{ env.STATE_UNIFIED }}" >> resolvers.settings.yaml + echo -e " contractAddress: ${{ vars.STATE_UNIFIED }}" >> resolvers.settings.yaml echo -e " networkURL: ${{ secrets.RPC_ETHEREUM_MAIN }}" >> resolvers.settings.yaml echo -e " sepolia:" >> resolvers.settings.yaml - echo -e " contractAddress: ${{ env.STATE_UNIFIED }}" >> resolvers.settings.yaml + echo -e " contractAddress: ${{ vars.STATE_UNIFIED }}" >> resolvers.settings.yaml echo -e " networkURL: ${{ secrets.RPC_ETHEREUM_SEPOLIA }}" >> resolvers.settings.yaml echo -e "linea:" >> resolvers.settings.yaml echo -e " main:" >> resolvers.settings.yaml - echo -e " contractAddress: ${{ env.STATE_UNIFIED }}" >> resolvers.settings.yaml + echo -e " contractAddress: ${{ vars.STATE_UNIFIED }}" >> resolvers.settings.yaml echo -e " networkURL: ${{ secrets.RPC_LINEA_MAIN }}" >> resolvers.settings.yaml echo -e " sepolia:" >> resolvers.settings.yaml - echo -e " contractAddress: ${{ env.STATE_UNIFIED }}" >> resolvers.settings.yaml + echo -e " contractAddress: ${{ vars.STATE_UNIFIED }}" >> resolvers.settings.yaml echo -e " networkURL: ${{ secrets.RPC_LINEA_SEPOLIA }}" >> resolvers.settings.yaml - name: Set up Docker Buildx