From d7ec003a2e237574dbca9bcad4814f11e8228f8f Mon Sep 17 00:00:00 2001 From: Daniel Van Der Ploeg Date: Mon, 28 Oct 2024 10:18:54 +1030 Subject: [PATCH] chore: pass secrets through to workflow --- .github/workflows/build.yml | 24 ++++++++++++++++++++++++ .github/workflows/pull-request.yml | 2 ++ 2 files changed, 26 insertions(+) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index a41d6952..cf0c8f7f 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -26,9 +26,33 @@ jobs: run: yarn install - name: Build all packages + env: + BC_CLIENT_ID: ${{ secrets.BC_CLIENT_ID }} + BC_CLIENT_SECRET: ${{ secrets.BC_CLIENT_SECRET }} + BC_GRAPHQL_API: ${{ secrets.BC_GRAPHQL_API }} + BC_GRAPHQL_TOKEN: ${{ secrets.BC_GRAPHQL_TOKEN }} + BC_REST_API: ${{ secrets.BC_REST_API }} + JWT_PRIVATE_KEY: ${{ secrets.JWT_PRIVATE_KEY }} + ORO_CLIENT_ID: ${{ secrets.ORO_CLIENT_ID }} + ORO_CLIENT_SECRET: ${{ secrets.ORO_CLIENT_SECRET }} + ORO_STORE_URL: ${{ secrets.ORO_STORE_URL }} + STORE_HASH: ${{ secrets.STORE_HASH }} + X_AUTH_TOKEN: ${{ secrets.X_AUTH_TOKEN }} run: yarn nx run-many -t build - name: Build Docker Container + env: + BC_CLIENT_ID: ${{ secrets.BC_CLIENT_ID }} + BC_CLIENT_SECRET: ${{ secrets.BC_CLIENT_SECRET }} + BC_GRAPHQL_API: ${{ secrets.BC_GRAPHQL_API }} + BC_GRAPHQL_TOKEN: ${{ secrets.BC_GRAPHQL_TOKEN }} + BC_REST_API: ${{ secrets.BC_REST_API }} + JWT_PRIVATE_KEY: ${{ secrets.JWT_PRIVATE_KEY }} + ORO_CLIENT_ID: ${{ secrets.ORO_CLIENT_ID }} + ORO_CLIENT_SECRET: ${{ secrets.ORO_CLIENT_SECRET }} + ORO_STORE_URL: ${{ secrets.ORO_STORE_URL }} + STORE_HASH: ${{ secrets.STORE_HASH }} + X_AUTH_TOKEN: ${{ secrets.X_AUTH_TOKEN }} run: yarn nx docker-build ${inputs.application} - name: Build and export diff --git a/.github/workflows/pull-request.yml b/.github/workflows/pull-request.yml index d831e10e..31c3406f 100644 --- a/.github/workflows/pull-request.yml +++ b/.github/workflows/pull-request.yml @@ -65,8 +65,10 @@ jobs: build: name: 👷 Build strategy: + fail-fast: false matrix: application: [bigcommerce-mesh, orocommerce-mesh] uses: ./.github/workflows/build.yml with: application: ${{ matrix.application }} + secrets: inherit