Skip to content

Commit f7f41a8

Browse files
committed
[WIP]test image cache if worked when run multi jobs
test image cache if worked when running multi jobs
1 parent c9abc30 commit f7f41a8

File tree

1 file changed

+47
-3
lines changed

1 file changed

+47
-3
lines changed

.github/workflows/test-harmony.yml

Lines changed: 47 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,51 @@ on:
99
- develop
1010

1111
jobs:
12-
test-custom-container:
13-
runs-on: lynx-custom-dind
12+
# test-custom-container:
13+
# runs-on: lynx-custom-dind
14+
# container:
15+
# image: ghcr.io/lynx-family/harmony:5.0.9.310
16+
# options: --cap-add=NET_ADMIN
17+
# credentials:
18+
# username: lynx-family
19+
# password: ${{ secrets.GITHUB_TOKEN }}
20+
# steps:
21+
# - name: Set MTU
22+
# run: |
23+
# apt install --no-install-recommends -y iproute2
24+
# ip link set dev eth0 mtu 1450
25+
# echo "MTU set successfully"
26+
# - name: Download Source
27+
# uses: actions/[email protected]
28+
# - name: debug
29+
# shell: bash
30+
# run: |
31+
# echo 'This is in custom container'
32+
33+
test-custom-container-cache-1:
34+
runs-on: lynx-custom-dind-cache
35+
container:
36+
image: ghcr.io/lynx-family/harmony:5.0.9.310
37+
options: --cap-add=NET_ADMIN
38+
credentials:
39+
username: lynx-family
40+
password: ${{ secrets.GITHUB_TOKEN }}
41+
steps:
42+
- name: Set MTU
43+
run: |
44+
apt install --no-install-recommends -y iproute2
45+
ip link set dev eth0 mtu 1450
46+
echo "MTU set successfully"
47+
- name: Download Source
48+
uses: actions/[email protected]
49+
- name: debug
50+
shell: bash
51+
run: |
52+
sleep infinity
53+
# echo 'This is in custom container'
54+
55+
test-custom-container-cache-2:
56+
runs-on: lynx-custom-dind-cache
1457
container:
1558
image: ghcr.io/lynx-family/harmony:5.0.9.310
1659
options: --cap-add=NET_ADMIN
@@ -28,4 +71,5 @@ jobs:
2871
- name: debug
2972
shell: bash
3073
run: |
31-
echo 'This is in custom container'
74+
sleep infinity
75+
# echo 'This is in custom container'

0 commit comments

Comments
 (0)