-
Notifications
You must be signed in to change notification settings - Fork 14
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add autoupdate/moonray to GitHub workflows (#467)
- Loading branch information
1 parent
f0bed04
commit 7a82439
Showing
7 changed files
with
74 additions
and
1 deletion.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
name: Auto-update moonray branch | ||
|
||
on: | ||
push: | ||
branches: | ||
- main | ||
|
||
permissions: | ||
contents: read | ||
|
||
jobs: | ||
update: | ||
permissions: | ||
contents: write # for Git to git push | ||
runs-on: ubuntu-22.04 | ||
steps: | ||
- name: Harden Runner | ||
uses: step-security/harden-runner@v2 | ||
with: | ||
egress-policy: audit | ||
- name: Sync ${{ github.ref }} to autoupdate/moonray | ||
uses: actions/checkout@v4 | ||
with: | ||
ssh-key: ${{ secrets.DEPLOY_KEY_TO_UPDATE_STRICT_BRANCH }} | ||
- name: Apply moonray patch | ||
run: | | ||
git checkout -b autoupdate/moonray | ||
./build-scripts/patches/moonray/apply | ||
- name: Push to autoupdate/moonray | ||
run: | | ||
git push origin --force autoupdate/moonray |
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 |
---|---|---|
@@ -0,0 +1,24 @@ | ||
From de526e476d051fbc5ec4cfbec383a60729434159 Mon Sep 17 00:00:00 2001 | ||
From: Benjamin Schimke <[email protected]> | ||
Date: Wed, 5 Jun 2024 09:48:57 +0200 | ||
Subject: [PATCH] Moonray | ||
|
||
--- | ||
src/k8s/pkg/k8sd/features/implementation_default.go | 1 + | ||
1 file changed, 1 insertion(+) | ||
|
||
diff --git a/src/k8s/pkg/k8sd/features/implementation_default.go b/src/k8s/pkg/k8sd/features/implementation_default.go | ||
index aac2d97..313a7f5 100644 | ||
--- a/src/k8s/pkg/k8sd/features/implementation_default.go | ||
+++ b/src/k8s/pkg/k8sd/features/implementation_default.go | ||
@@ -12,6 +12,7 @@ import ( | ||
// CoreDNS is used for DNS. | ||
// MetricsServer is used for metrics-server. | ||
// LocalPV Rawfile CSI is used for local-storage. | ||
+// TODO: Replace with moonray specific implementation. | ||
var Implementation Interface = &implementation{ | ||
applyDNS: coredns.ApplyDNS, | ||
applyNetwork: cilium.ApplyNetwork, | ||
-- | ||
2.34.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,14 @@ | ||
#!/bin/bash -xe | ||
|
||
DIR="$(realpath "$(dirname "${0}")")" | ||
|
||
# Configure git author | ||
git config user.email [email protected] | ||
git config user.name k8s-bot | ||
|
||
# Remove unrelated tests | ||
rm "${DIR}/../../../tests/integration/tests/test_cilium_e2e.py" | ||
git commit -a -m "Remove unrelated tests" | ||
|
||
# Apply strict patch | ||
git am "${DIR}/0001-Moonray.patch" |