forked from buildfarm/buildfarm
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge commit '14810a42ec8ea1fd65009d1183dd37a8ace0a0e3' into jackies/…
…upgrade-bazel-buildfarm-to-v2.9.0
- Loading branch information
Showing
264 changed files
with
16,588 additions
and
4,255 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
6.1.2 | ||
6.4.0 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
--- | ||
name: Lint Helm Chart | ||
|
||
on: | ||
push: | ||
paths: | ||
- kubernetes/helm-charts/buildfarm/** | ||
|
||
env: | ||
CHART_ROOT: kubernetes/helm-charts/buildfarm | ||
|
||
jobs: | ||
lint: | ||
name: Lint Helm Chart | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v4 | ||
- id: helm-lint | ||
name: Lint Helm Chart | ||
run: |- | ||
set -ex | ||
helm dep up "${CHART_ROOT}" | ||
helm lint "${CHART_ROOT}" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,42 @@ | ||
--- | ||
name: Package and Publish Helm Chart | ||
|
||
on: | ||
push: | ||
tags: | ||
- 'helm/*' | ||
|
||
env: | ||
GH_TOKEN: ${{ github.token }} | ||
CHART_ROOT: kubernetes/helm-charts/buildfarm | ||
|
||
jobs: | ||
build: | ||
name: Lint, Package, and Release BuildFarm Helm Chart | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v4 | ||
- id: get-chart-ver | ||
name: Extracting Helm Chart Version from Tag | ||
run: | | ||
set -ex | ||
echo "chart_ver=$(echo $GITHUB_REF | cut -d / -f 4)" >> $GITHUB_OUTPUT | ||
- id: set-chart-yaml-version | ||
name: Etching Helm Chart Version into Chart.yaml for Packaging | ||
run: | | ||
set -ex | ||
echo setting Chart version to \ | ||
"${{ steps.get-chart-ver.outputs.chart_ver }}" \ | ||
in ${CHART_ROOT}/Chart.yaml | ||
yq -i \ | ||
'.version |= "${{ steps.get-chart-ver.outputs.chart_ver }}"' \ | ||
${CHART_ROOT}/Chart.yaml | ||
- id: helm-lint-package-release | ||
name: Helm Chart Lint, Package, and Release | ||
run: |- | ||
set -ex | ||
helm dep up "${CHART_ROOT}" | ||
helm lint "${CHART_ROOT}" | ||
helm package "${CHART_ROOT}" | ||
gh release create "${{ github.ref_name }}" *.tgz |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
name: Build and Push Latest Buildfarm Images | ||
|
||
on: | ||
push: | ||
branches: | ||
- main | ||
|
||
jobs: | ||
build: | ||
if: github.repository == 'bazelbuild/bazel-buildfarm' | ||
name: Build Buildfarm Images | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: bazelbuild/setup-bazelisk@v2 | ||
|
||
- name: Checkout | ||
uses: actions/checkout@v3 | ||
|
||
- name: Login to Bazelbuild Docker Hub | ||
uses: docker/login-action@v3 | ||
with: | ||
username: ${{ secrets.BAZELBUILD_DOCKERHUB_USERNAME }} | ||
password: ${{ secrets.BAZELBUILD_DOCKERHUB_TOKEN }} | ||
|
||
- name: Build Server Image | ||
id: buildAndPushServerImage | ||
run: bazel run public_push_buildfarm-server --define release_version=latest | ||
|
||
- name: Build Worker Image | ||
id: buildAndPushWorkerImage | ||
run: bazel run public_push_buildfarm-worker --define release_version=latest |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
name: Build and Push Buildfarm Releases | ||
|
||
on: | ||
release: | ||
types: [published] | ||
|
||
jobs: | ||
build: | ||
if: github.repository == 'bazelbuild/bazel-buildfarm' | ||
name: Build Buildfarm Images | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: bazelbuild/setup-bazelisk@v2 | ||
|
||
- name: Checkout | ||
uses: actions/checkout@v3 | ||
|
||
- name: Login to Bazelbuild Docker Hub | ||
uses: docker/login-action@v3 | ||
with: | ||
username: ${{ secrets.BAZELBUILD_DOCKERHUB_USERNAME }} | ||
password: ${{ secrets.BAZELBUILD_DOCKERHUB_TOKEN }} | ||
|
||
- name: Build Server Image | ||
id: buildAndPushServerImage | ||
run: bazel run public_push_buildfarm-server --define release_version=${{ github.event.release.tag_name }} | ||
|
||
- name: Build Worker Image | ||
id: buildAndPushWorkerImage | ||
run: bazel run public_push_buildfarm-worker --define release_version=${{ github.event.release.tag_name }} |
39 changes: 39 additions & 0 deletions
39
.github/workflows/buildfarm-worker-base-build-and-deploy.yml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
name: Build and Push Base Buildfarm Worker Images | ||
|
||
on: | ||
push: | ||
branches: | ||
- main | ||
paths: | ||
- ci/base-worker-image/jammy/Dockerfile | ||
- ci/base-worker-image/mantic/Dockerfile | ||
jobs: | ||
build: | ||
if: github.repository == 'bazelbuild/bazel-buildfarm' | ||
name: Build Base Buildfarm Worker Image | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v3 | ||
|
||
- name: Login to Bazelbuild Docker Hub | ||
uses: docker/login-action@v3 | ||
with: | ||
username: ${{ secrets.BAZELBUILD_DOCKERHUB_USERNAME }} | ||
password: ${{ secrets.BAZELBUILD_DOCKERHUB_TOKEN }} | ||
|
||
- name: Build Jammy Docker image | ||
uses: docker/build-push-action@3b5e8027fcad23fda98b2e3ac259d8d67585f671 | ||
with: | ||
context: . | ||
file: ./ci/base-worker-image/jammy/Dockerfile | ||
push: true | ||
tags: bazelbuild/buildfarm-worker-base:jammy | ||
|
||
- name: Build Mantic Docker image | ||
uses: docker/build-push-action@3b5e8027fcad23fda98b2e3ac259d8d67585f671 | ||
with: | ||
context: . | ||
file: ./ci/base-worker-image/mantic/Dockerfile | ||
push: true | ||
tags: bazelbuild/buildfarm-worker-base:mantic |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,68 @@ | ||
name: Scorecards supply-chain security | ||
on: | ||
# For Branch-Protection check. Only the default branch is supported. See | ||
# https://github.com/ossf/scorecard/blob/main/docs/checks.md#branch-protection | ||
branch_protection_rule: | ||
# To guarantee Maintained check is occasionally updated. See | ||
# https://github.com/ossf/scorecard/blob/main/docs/checks.md#maintained | ||
schedule: | ||
- cron: "23 2 * * 5" | ||
push: | ||
branches: ["main"] | ||
|
||
# Declare default permissions as read only. | ||
permissions: read-all | ||
|
||
jobs: | ||
analysis: | ||
name: Scorecards analysis | ||
runs-on: ubuntu-latest | ||
permissions: | ||
# Needed to upload the results to code-scanning dashboard. | ||
security-events: write | ||
# Needed to publish results and get a badge (see publish_results below). | ||
id-token: write | ||
# Uncomment the permissions below if installing in a private repository. | ||
# contents: read | ||
# actions: read | ||
|
||
steps: | ||
- name: "Checkout code" | ||
uses: actions/checkout@f43a0e5ff2bd294095638e18286ca9a3d1956744 # v3.6.0 | ||
with: | ||
persist-credentials: false | ||
|
||
- name: "Run analysis" | ||
uses: ossf/scorecard-action@0864cf19026789058feabb7e87baa5f140aac736 # v2.3.1 | ||
with: | ||
results_file: results.sarif | ||
results_format: sarif | ||
# (Optional) "write" PAT token. Uncomment the `repo_token` line below if: | ||
# - you want to enable the Branch-Protection check on a *public* repository, or | ||
# - you are installing Scorecards on a *private* repository | ||
# To create the PAT, follow the steps in https://github.com/ossf/scorecard-action#authentication-with-pat. | ||
# repo_token: ${{ secrets.SCORECARD_TOKEN }} | ||
|
||
# Public repositories: | ||
# - Publish results to OpenSSF REST API for easy access by consumers | ||
# - Allows the repository to include the Scorecard badge. | ||
# - See https://github.com/ossf/scorecard-action#publishing-results. | ||
# For private repositories: | ||
# - `publish_results` will always be set to `false`, regardless | ||
# of the value entered here. | ||
publish_results: true | ||
|
||
# Upload the results as artifacts (optional). Commenting out will disable uploads of run results in SARIF | ||
# format to the repository Actions tab. | ||
- name: "Upload artifact" | ||
uses: actions/upload-artifact@a8a3f3ad30e3422c9c7b888a15615d19a852ae32 # v3.1.3 | ||
with: | ||
name: SARIF file | ||
path: results.sarif | ||
retention-days: 5 | ||
|
||
# Upload the results to GitHub's code scanning dashboard. | ||
- name: "Upload to code-scanning" | ||
uses: github/codeql-action/upload-sarif@4759df8df70c5ebe7042c3029bbace20eee13edd # v2.23.1 | ||
with: | ||
sarif_file: results.sarif |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -9,3 +9,4 @@ | |
Uber Technologies Inc. | ||
Aurora Innovation, Inc. | ||
VMware, Inc. | ||
Salesforce, Inc. |
Oops, something went wrong.