diff --git a/.github/actions/deploy/deploy-staging-preprod/action.yml b/.github/actions/deploy/deploy-staging-preprod/action.yml index a166925db..b1d335b3d 100644 --- a/.github/actions/deploy/deploy-staging-preprod/action.yml +++ b/.github/actions/deploy/deploy-staging-preprod/action.yml @@ -4,8 +4,8 @@ inputs: image: description: "Node Image" required: true - chain-spec-secret: - description: "Chain Spec Secret Name" + sha: + description: "Git SHA" required: true outputs: {} @@ -77,10 +77,10 @@ runs: - name: Deploy with chain-spec and image override run: | cd sidechains-infra-priv/src/kube/substrate-poc/environments/helm/substrate-node-stack-chart/ - helm upgrade --install staging-preprod-validator-1 . -f values/chains/staging-preprod.yaml -f values/nodes/staging-preprod/validator/staging-preprod-validator-1 --set images.substrateNode="${{ inputs.image }}" --set chain.chainspec_secretName="${{ inputs.chain-spec-secret }}" - helm upgrade --install staging-preprod-validator-2 . -f values/chains/staging-preprod.yaml -f values/nodes/staging-preprod/validator/staging-preprod-validator-2 --set images.substrateNode="${{ inputs.image }}" --set chain.chainspec_secretName="${{ inputs.chain-spec-secret }}" - helm upgrade --install staging-preprod-validator-3 . -f values/chains/staging-preprod.yaml -f values/nodes/staging-preprod/validator/staging-preprod-validator-3 --set images.substrateNode="${{ inputs.image }}" --set chain.chainspec_secretName="${{ inputs.chain-spec-secret }}" - helm upgrade --install staging-preprod-validator-4 . -f values/chains/staging-preprod.yaml -f values/nodes/staging-preprod/validator/staging-preprod-validator-4 --set images.substrateNode="${{ inputs.image }}" --set chain.chainspec_secretName="${{ inputs.chain-spec-secret }}" + helm upgrade --install staging-preprod-validator-1 . -f values/chains/staging-preprod.yaml -f values/nodes/staging-preprod/validator/staging-preprod-validator-1 --set images.substrateNode="${{ inputs.image }}" --set chain.chainspec_secretName="staging-preprod-chain-spec-${{ inputs.sha }}" + helm upgrade --install staging-preprod-validator-2 . -f values/chains/staging-preprod.yaml -f values/nodes/staging-preprod/validator/staging-preprod-validator-2 --set images.substrateNode="${{ inputs.image }}" --set chain.chainspec_secretName="staging-preprod-chain-spec-${{ inputs.sha }}" + helm upgrade --install staging-preprod-validator-3 . -f values/chains/staging-preprod.yaml -f values/nodes/staging-preprod/validator/staging-preprod-validator-3 --set images.substrateNode="${{ inputs.image }}" --set chain.chainspec_secretName="staging-preprod-chain-spec-${{ inputs.sha }}" + helm upgrade --install staging-preprod-validator-4 . -f values/chains/staging-preprod.yaml -f values/nodes/staging-preprod/validator/staging-preprod-validator-4 --set images.substrateNode="${{ inputs.image }}" --set chain.chainspec_secretName="staging-preprod-chain-spec-${{ inputs.sha }}" shell: bash - name: Wait diff --git a/.github/actions/deploy/deploy-staging-preview/action.yml b/.github/actions/deploy/deploy-staging-preview/action.yml index 113c68281..230899efe 100644 --- a/.github/actions/deploy/deploy-staging-preview/action.yml +++ b/.github/actions/deploy/deploy-staging-preview/action.yml @@ -4,8 +4,8 @@ inputs: image: description: "Node Image" required: true - chain-spec-secret: - description: "Chain Spec Secret Name" + sha: + description: "Git SHA" required: true outputs: {} @@ -77,10 +77,10 @@ runs: - name: Deploy with chain-spec and image override run: | cd sidechains-infra-priv/src/kube/substrate-poc/environments/helm/substrate-node-stack-chart/ - helm upgrade --install staging-preview-validator-1 . -f values/chains/staging-preview.yaml -f values/nodes/staging-preview/validator/staging-preview-validator-1 --set images.substrateNode="${{ inputs.image }}" --set chain.chainspec_secretName="${{ inputs.chain-spec-secret }}" - helm upgrade --install staging-preview-validator-2 . -f values/chains/staging-preview.yaml -f values/nodes/staging-preview/validator/staging-preview-validator-2 --set images.substrateNode="${{ inputs.image }}" --set chain.chainspec_secretName="${{ inputs.chain-spec-secret }}" - helm upgrade --install staging-preview-validator-3 . -f values/chains/staging-preview.yaml -f values/nodes/staging-preview/validator/staging-preview-validator-3 --set images.substrateNode="${{ inputs.image }}" --set chain.chainspec_secretName="${{ inputs.chain-spec-secret }}" - helm upgrade --install staging-preview-validator-4 . -f values/chains/staging-preview.yaml -f values/nodes/staging-preview/validator/staging-preview-validator-4 --set images.substrateNode="${{ inputs.image }}" --set chain.chainspec_secretName="${{ inputs.chain-spec-secret }}" + helm upgrade --install staging-preview-validator-1 . -f values/chains/staging-preview.yaml -f values/nodes/staging-preview/validator/staging-preview-validator-1 --set images.substrateNode="${{ inputs.image }}" --set chain.chainspec_secretName="staging-preview-chain-spec-${{ inputs.sha }}" + helm upgrade --install staging-preview-validator-2 . -f values/chains/staging-preview.yaml -f values/nodes/staging-preview/validator/staging-preview-validator-2 --set images.substrateNode="${{ inputs.image }}" --set chain.chainspec_secretName="staging-preview-chain-spec-${{ inputs.sha }}" + helm upgrade --install staging-preview-validator-3 . -f values/chains/staging-preview.yaml -f values/nodes/staging-preview/validator/staging-preview-validator-3 --set images.substrateNode="${{ inputs.image }}" --set chain.chainspec_secretName="staging-preview-chain-spec-${{ inputs.sha }}" + helm upgrade --install staging-preview-validator-4 . -f values/chains/staging-preview.yaml -f values/nodes/staging-preview/validator/staging-preview-validator-4 --set images.substrateNode="${{ inputs.image }}" --set chain.chainspec_secretName="staging-preview-chain-spec-${{ inputs.sha }}" shell: bash - name: Wait diff --git a/.github/workflows/cd.yml b/.github/workflows/cd.yml index fc423195a..a04a62817 100644 --- a/.github/workflows/cd.yml +++ b/.github/workflows/cd.yml @@ -151,7 +151,7 @@ jobs: uses: ./.github/actions/deploy/deploy-staging-preview with: image: ${{ secrets.ECR_REGISTRY_SECRET }}/substrate-node:${{ inputs.sha }} - chain-spec-secret: ${{ inputs.chain-spec-secret }} + sha: ${{ github.sha }} env: AWS_REGION: "eu-central-1" SSH_AUTH_SOCK: /tmp/ssh_agent.sock