From d6d8b35ddbec4ecc64de5f99db7b9548282ae289 Mon Sep 17 00:00:00 2001 From: Giacomo Licari Date: Thu, 7 Mar 2024 16:16:14 +0100 Subject: [PATCH] CI: add steps to build UI for Chiado and GC --- .github/workflows/publish-ui.yaml | 20 ++++++++++++++++---- 1 file changed, 16 insertions(+), 4 deletions(-) diff --git a/.github/workflows/publish-ui.yaml b/.github/workflows/publish-ui.yaml index 0122754..490bef2 100644 --- a/.github/workflows/publish-ui.yaml +++ b/.github/workflows/publish-ui.yaml @@ -58,17 +58,29 @@ jobs: "REACT_APP_HCAPTCHA_SITE_KEY=${{ secrets.DEV_REACT_APP_HCAPTCHA_SITE_KEY }}" "REACT_APP_FAUCET_API_URL=${{ secrets.DEV_REACT_APP_FAUCET_API_URL}}" - - name: Main branch / tags - Build and push Docker image + - name: Gnosis Chain - Main branch / tags - Build and push Docker image if: ( github.ref == 'refs/heads/main' || startsWith(github.ref, 'refs/tags/v') ) uses: docker/build-push-action@4a13e500e55cf31b7a5d59a38ab2040ab0f42f56 with: context: app push: true - tags: ${{ steps.meta.outputs.tags }} + tags: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}:${{ github.ref_name }}-gc + labels: ${{ steps.meta.outputs.labels }} + build-args: | + "REACT_APP_HCAPTCHA_SITE_KEY=${{ secrets.PROD_GC_REACT_APP_HCAPTCHA_SITE_KEY }}" + "REACT_APP_FAUCET_API_URL=${{ secrets.PROD_GC_REACT_APP_FAUCET_API_URL}}" + + - name: Chiado Chain - Main branch / tags - Build and push Docker image + if: ( github.ref == 'refs/heads/main' || startsWith(github.ref, 'refs/tags/v') ) + uses: docker/build-push-action@4a13e500e55cf31b7a5d59a38ab2040ab0f42f56 + with: + context: app + push: true + tags: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}:${{ github.ref_name }}-chiado labels: ${{ steps.meta.outputs.labels }} build-args: | - "REACT_APP_HCAPTCHA_SITE_KEY=${{ secrets.PROD_REACT_APP_HCAPTCHA_SITE_KEY }}" - "REACT_APP_FAUCET_API_URL=${{ secrets.PROD_REACT_APP_FAUCET_API_URL}}" + "REACT_APP_HCAPTCHA_SITE_KEY=${{ secrets.PROD_CHIADO_REACT_APP_HCAPTCHA_SITE_KEY }}" + "REACT_APP_FAUCET_API_URL=${{ secrets.PROD_CHIADO_REACT_APP_FAUCET_API_URL}}" eks-deployment-restart: # Run job on branch dev only