mirror of
https://github.com/rocky-linux/peridot.git
synced 2024-11-18 11:21:25 +00:00
Merge pull request #45 from mstg/postsubmit-all-frontends
Add frontend postsubmit
This commit is contained in:
commit
5894fc8ba8
@ -34,6 +34,6 @@ import * as apollo from 'bazel-bin/apollo/proto/v1/client_typescript';
|
|||||||
|
|
||||||
export const api = new apollo.ApolloServiceApi(
|
export const api = new apollo.ApolloServiceApi(
|
||||||
new apollo.Configuration({
|
new apollo.Configuration({
|
||||||
basePath: '/api',
|
basePath: '/api', // Points to frontend API proxy
|
||||||
})
|
})
|
||||||
);
|
);
|
||||||
|
@ -18,3 +18,20 @@ postsubmits:
|
|||||||
command:
|
command:
|
||||||
- hack/unit_tests.sh
|
- 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
7
hack/build_all_frontends.sh
Executable 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', //...)")
|
2
hack/frontend_build.sh
Normal file → Executable file
2
hack/frontend_build.sh
Normal file → Executable file
@ -18,7 +18,7 @@ git checkout "$PULL_PULL_SHA" --quiet
|
|||||||
bazel-bin/bazel-diff generate-hashes -w "$workspace_dir" -b "$bazel_bin" ending_hashes_json
|
bazel-bin/bazel-diff generate-hashes -w "$workspace_dir" -b "$bazel_bin" ending_hashes_json
|
||||||
|
|
||||||
# Get impacted targets
|
# Get impacted targets
|
||||||
bazel-bin/bazel-diff get-impacted-targets -sh starting_hashes_json -fh ending_hashes_json impacted_targets
|
bazel-bin/bazel-diff get-impacted-targets -sh starting_hashes_json -fh ending_hashes_json -o impacted_targets
|
||||||
|
|
||||||
# Build impacted targets
|
# Build impacted targets
|
||||||
hack/build_impacted_frontend.sh
|
hack/build_impacted_frontend.sh
|
||||||
|
Loading…
Reference in New Issue
Block a user