From d430a922b4fb7db8446d36826b0c613bd5f05e08 Mon Sep 17 00:00:00 2001 From: Mustafa Gezen Date: Sun, 30 Oct 2022 09:54:07 +0100 Subject: [PATCH] Add frontend postsubmit --- apollo/ui/src/api.ts | 2 +- config/jobs/postsubmits.yaml | 17 +++++++++++++++++ hack/build_all_frontends.sh | 7 +++++++ 3 files changed, 25 insertions(+), 1 deletion(-) create mode 100755 hack/build_all_frontends.sh diff --git a/apollo/ui/src/api.ts b/apollo/ui/src/api.ts index 39de095..058442f 100644 --- a/apollo/ui/src/api.ts +++ b/apollo/ui/src/api.ts @@ -34,6 +34,6 @@ import * as apollo from 'bazel-bin/apollo/proto/v1/client_typescript'; export const api = new apollo.ApolloServiceApi( new apollo.Configuration({ - basePath: '/api', + basePath: '/api', // Points to frontend API proxy }) ); diff --git a/config/jobs/postsubmits.yaml b/config/jobs/postsubmits.yaml index 59e9174..bc48d60 100644 --- a/config/jobs/postsubmits.yaml +++ b/config/jobs/postsubmits.yaml @@ -18,3 +18,20 @@ postsubmits: command: - hack/unit_tests.sh + - name: post-peridot-build-all-frontends + always_run: true + decorate: true + branches: + - main + spec: + tolerations: + - key: peridot.rockylinux.org/workflow-tolerates-arch + operator: Equal + value: amd64 + effect: NoSchedule + nodeSelector: + peridot.rockylinux.org/workflow-tolerates-arch: amd64 + containers: + - image: quay.io/peridot/ci:v0.3.16 + command: + - hack/build_all_frontends.sh diff --git a/hack/build_all_frontends.sh b/hack/build_all_frontends.sh new file mode 100755 index 0000000..a93120b --- /dev/null +++ b/hack/build_all_frontends.sh @@ -0,0 +1,7 @@ +#!/usr/bin/env bash + +set -o errexit + +source hack/bazel_setup.sh + +$BAZEL_B $($BAZEL_QR "attr(tags, 'resf_frontend_bundle', //...)")