Skip to content

Commit 0a089ed

Browse files
committed
testing
Signed-off-by: bakhtin <a@bakhtin.net>
1 parent ba16fbf commit 0a089ed

1 file changed

Lines changed: 40 additions & 31 deletions

File tree

.github/workflows/release.yml

Lines changed: 40 additions & 31 deletions
Original file line numberDiff line numberDiff line change
@@ -13,13 +13,13 @@ jobs:
1313
steps:
1414
- uses: actions/checkout@v5
1515

16-
- name: Restore cache
17-
id: restore-cache
18-
uses: actions/cache/restore@v4
19-
with:
20-
path: |
21-
cache.tar
22-
key: mkosi-buildernet-
16+
# - name: Restore cache
17+
# id: restore-cache
18+
# uses: actions/cache/restore@v4
19+
# with:
20+
# path: |
21+
# cache.tar
22+
# key: mkosi-buildernet-
2323

2424
- name: Install tools
2525
run: |
@@ -41,28 +41,48 @@ jobs:
4141
type = s3
4242
provider = Cloudflare
4343
44-
access_key_id = "$R2_FLASHBOTS_PUBLIC_ARTIFACTS_ACCESS_KEY"
45-
secret_access_key = "$R2_FLASHBOTS_PUBLIC_ARTIFACTS_SECRET_KEY"
44+
access_key_id = $R2_FLASHBOTS_PUBLIC_ARTIFACTS_ACCESS_KEY
45+
secret_access_key = $R2_FLASHBOTS_PUBLIC_ARTIFACTS_SECRET_KEY
4646
region = auto
47-
endpoint = "$R2_FLASHBOTS_PUBLIC_ARTIFACTS_ENDPOINT"
47+
endpoint = $R2_FLASHBOTS_PUBLIC_ARTIFACTS_ENDPOINT
4848
acl = private
4949
EOF
5050
51-
- name: Extract cache
52-
run: |
53-
if [[ -f cache.tar ]]; then
54-
sudo tar -xf cache.tar
55-
sudo rm -f cache.tar
56-
fi
51+
grep endpoint ~/.config/rclone/rclone.conf
52+
53+
# - name: Extract cache
54+
# run: |
55+
# if [[ -f cache.tar ]]; then
56+
# sudo tar -xf cache.tar
57+
# sudo rm -f cache.tar
58+
# fi
5759

5860
- name: Enable user namespaces
5961
run: |
6062
sudo sysctl -w kernel.apparmor_restrict_unprivileged_userns=0
6163
62-
- name: Build image
64+
# - name: Build image
65+
# run: |
66+
# umask 022
67+
# mkosi --force -I buildernet.conf --image-version=${GITHUB_REF_NAME#v}-${GITHUB_SHA::8}
68+
69+
# - name: Prepare cache
70+
# run: |
71+
# sudo find . \( -name "mkosi.builddir" -o -name "mkosi.cache" -o -name "mkosi.tools" \) -type d -print0 | \
72+
# sudo tar --null -rf cache.tar -T - 2>/dev/null || true
73+
74+
# - uses: actions/cache/save@v4
75+
# id: save-cache
76+
# with:
77+
# path: cache.tar
78+
# key: mkosi-buildernet-${{ github.run_id }}
79+
80+
- name: Generate fake artifacts
6381
run: |
64-
umask 022
65-
mkosi --force -I buildernet.conf --image-version=${GITHUB_REF_NAME#v}-${GITHUB_SHA::8}
82+
mkdir -p mkosi.output
83+
echo "fake efi content" > mkosi.output/buildernet-${GITHUB_REF_NAME#v}-${GITHUB_SHA::8}.efi
84+
echo "fake tar.gz content" > mkosi.output/buildernet-${GITHUB_REF_NAME#v}-${GITHUB_SHA::8}-import.tar.gz
85+
echo "fake vhd content" > mkosi.output/buildernet-${GITHUB_REF_NAME#v}-${GITHUB_SHA::8}.vhd
6686
6787
- name: Sign artifacts
6888
env:
@@ -83,16 +103,5 @@ jobs:
83103
- name: Upload to R2
84104
run: |
85105
for file in mkosi.output/*.{efi,tar.gz,vhd,minisig,sha256}; do
86-
rclone copy "$file" r2-flashbots-public-artifacts:flashbots-public-artifacts/buildernet-images/${GITHUB_REF_NAME#v}/$file
106+
rclone copy -P "$file" r2-flashbots-public-artifacts:flashbots-public-artifacts/buildernet-images/${GITHUB_REF_NAME}/
87107
done
88-
89-
- name: Prepare cache
90-
run: |
91-
sudo find . \( -name "mkosi.builddir" -o -name "mkosi.cache" -o -name "mkosi.tools" \) -type d -print0 | \
92-
sudo tar --null -rf cache.tar -T - 2>/dev/null || true
93-
94-
- uses: actions/cache/save@v4
95-
id: save-cache
96-
with:
97-
path: cache.tar
98-
key: mkosi-buildernet-${{ github.run_id }}

0 commit comments

Comments
 (0)