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 'ece844a103eb0561a2bd1bf91129c12915a28ea8' into jackies/…
…upgrade-bazel-buildfarm-to-v2.10.2
- Loading branch information
Showing
370 changed files
with
15,967 additions
and
7,838 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
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
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 | ||
7.1.1 |
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,58 @@ | ||
--- | ||
name: Package and Publish Helm Chart | ||
|
||
on: | ||
push: | ||
tags: | ||
- 'helm/*' | ||
|
||
env: | ||
CHART_NAME: buildfarm | ||
CHART_ROOT: ${{ github.workspace }}/kubernetes/helm-charts/buildfarm | ||
GHCR_REPO: ghcr.io/${{ github.repository_owner }} | ||
|
||
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 | ||
name: Helm Chart Lint | ||
run: |- | ||
set -ex | ||
helm dep up "${CHART_ROOT}" | ||
helm lint "${CHART_ROOT}" | ||
- id: helm-bundle-push | ||
name: Helm Chart Bundle and Push | ||
run: |- | ||
set -e | ||
echo ${{ secrets.GITHUB_TOKEN }} | \ | ||
helm registry \ | ||
login "${GHCR_REPO}" \ | ||
--username "${{ github.repository_owner }}" \ | ||
--password-stdin | ||
set -ex | ||
helm dep up "${CHART_ROOT}" | ||
helm package "${CHART_ROOT}" | ||
export CHART_BUNDLE="${CHART_NAME}-${{ steps.get-chart-ver.outputs.chart_ver }}.tgz" | ||
ls -l "${CHART_BUNDLE}" | ||
helm push \ | ||
"${CHART_BUNDLE}" \ | ||
"oci://${GHCR_REPO}" |
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 -- --tag latest | ||
|
||
- name: Build Worker Image | ||
id: buildAndPushWorkerImage | ||
run: bazel run public_push_buildfarm-worker -- --tag 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 -- --tag ${{ github.event.release.tag_name }} | ||
|
||
- name: Build Worker Image | ||
id: buildAndPushWorkerImage | ||
run: bazel run public_push_buildfarm-worker -- --tag ${{ 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 |
Oops, something went wrong.