From cc6c6e82f90dc63c488dfc7f707a997be1b059f8 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..c313cb3 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: ${{ steps.meta.outputs.tags }}-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: ${{ steps.meta.outputs.tags }}-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