Add frontend postsubmit

This commit is contained in:
Mustafa Gezen 2022-10-30 09:54:07 +01:00
parent 09da3253c5
commit d430a922b4
Signed by untrusted user who does not match committer: mustafa
GPG Key ID: DCDF010D946438C1
3 changed files with 25 additions and 1 deletions

View File

@ -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
})
);

View File

@ -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

7
hack/build_all_frontends.sh Executable file
View File

@ -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', //...)")