Skip to content

Commit

Permalink
ci: init kind cluster before build finish
Browse files Browse the repository at this point in the history
  • Loading branch information
oilbeater committed Nov 3, 2021
1 parent bbb054d commit 6719ee2
Showing 1 changed file with 112 additions and 14 deletions.
126 changes: 112 additions & 14 deletions .github/workflows/build-x86-image.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,6 @@ jobs:
path: vpc-nat-gateway.tar

single-e2e:
needs: build
name: 1-master-e2e
runs-on: ubuntu-18.04
timeout-minutes: 30
Expand All @@ -96,6 +95,14 @@ jobs:
pip install "j2cli[yaml]" --user
sudo PATH=~/.local/bin:$PATH make kind-init
- name: Wait for build to succeed
uses: fountainhead/action-wait-for-check@v1.0.0
id: wait-for-build
with:
token: ${{ secrets.GITHUB_TOKEN }}
checkName: Build x86
ref: ${{ github.event.pull_request.head.sha || github.sha }}

- name: Download image
uses: actions/download-artifact@v2
with:
Expand Down Expand Up @@ -125,7 +132,6 @@ jobs:
sh dist/images/cleanup.sh
single-iptables-e2e:
needs: build
name: 1-master-iptables-e2e
runs-on: ubuntu-18.04
timeout-minutes: 30
Expand All @@ -145,6 +151,14 @@ jobs:
pip install "j2cli[yaml]" --user
sudo PATH=~/.local/bin:$PATH make kind-init-iptables
- name: Wait for build to succeed
uses: fountainhead/action-wait-for-check@v1.0.0
id: wait-for-build
with:
token: ${{ secrets.GITHUB_TOKEN }}
checkName: Build x86
ref: ${{ github.event.pull_request.head.sha || github.sha }}

- name: Download image
uses: actions/download-artifact@v2
with:
Expand Down Expand Up @@ -174,7 +188,6 @@ jobs:
sh dist/images/cleanup.sh
single-vlan-e2e:
needs: build
name: 1-master-vlan-e2e
runs-on: ubuntu-18.04
timeout-minutes: 30
Expand All @@ -194,6 +207,14 @@ jobs:
pip install "j2cli[yaml]" --user
sudo PATH=~/.local/bin:$PATH make kind-init
- name: Wait for build to succeed
uses: fountainhead/action-wait-for-check@v1.0.0
id: wait-for-build
with:
token: ${{ secrets.GITHUB_TOKEN }}
checkName: Build x86
ref: ${{ github.event.pull_request.head.sha || github.sha }}

- name: Download image
uses: actions/download-artifact@v2
with:
Expand Down Expand Up @@ -223,7 +244,6 @@ jobs:
sh dist/images/cleanup.sh
single-underlay-e2e-single-nic:
needs: build
name: 1-master-underlay-e2e-single-nic
runs-on: ubuntu-18.04
timeout-minutes: 30
Expand All @@ -243,6 +263,14 @@ jobs:
pip install "j2cli[yaml]" --user
sudo PATH=~/.local/bin:$PATH make kind-init
- name: Wait for build to succeed
uses: fountainhead/action-wait-for-check@v1.0.0
id: wait-for-build
with:
token: ${{ secrets.GITHUB_TOKEN }}
checkName: Build x86
ref: ${{ github.event.pull_request.head.sha || github.sha }}

- name: Download image
uses: actions/download-artifact@v2
with:
Expand Down Expand Up @@ -288,7 +316,6 @@ jobs:
'
single-node-e2e:
needs: build
name: 1-node-e2e
runs-on: ubuntu-18.04
timeout-minutes: 30
Expand All @@ -308,6 +335,14 @@ jobs:
pip install "j2cli[yaml]" --user
sudo PATH=~/.local/bin:$PATH make kind-init-single
- name: Wait for build to succeed
uses: fountainhead/action-wait-for-check@v1.0.0
id: wait-for-build
with:
token: ${{ secrets.GITHUB_TOKEN }}
checkName: Build x86
ref: ${{ github.event.pull_request.head.sha || github.sha }}

- name: Download image
uses: actions/download-artifact@v2
with:
Expand Down Expand Up @@ -337,7 +372,6 @@ jobs:
sh dist/images/cleanup.sh
ha-e2e:
needs: build
name: 3-master-e2e
runs-on: ubuntu-18.04
timeout-minutes: 30
Expand All @@ -357,6 +391,14 @@ jobs:
pip install "j2cli[yaml]" --user
sudo PATH=~/.local/bin:$PATH make kind-init-ha
- name: Wait for build to succeed
uses: fountainhead/action-wait-for-check@v1.0.0
id: wait-for-build
with:
token: ${{ secrets.GITHUB_TOKEN }}
checkName: Build x86
ref: ${{ github.event.pull_request.head.sha || github.sha }}

- name: Download image
uses: actions/download-artifact@v2
with:
Expand All @@ -368,7 +410,6 @@ jobs:
sudo make kind-install
ipv6-e2e:
needs: build
name: ipv6-e2e
runs-on: ubuntu-18.04
timeout-minutes: 30
Expand All @@ -388,6 +429,14 @@ jobs:
pip install "j2cli[yaml]" --user
sudo PATH=~/.local/bin:$PATH make kind-init-ipv6
- name: Wait for build to succeed
uses: fountainhead/action-wait-for-check@v1.0.0
id: wait-for-build
with:
token: ${{ secrets.GITHUB_TOKEN }}
checkName: Build x86
ref: ${{ github.event.pull_request.head.sha || github.sha }}

- name: Download image
uses: actions/download-artifact@v2
with:
Expand Down Expand Up @@ -421,7 +470,6 @@ jobs:
sh dist/images/cleanup.sh
ipv6-vlan-e2e:
needs: build
name: ipv6-vlan-e2e
runs-on: ubuntu-18.04
timeout-minutes: 30
Expand All @@ -441,6 +489,14 @@ jobs:
pip install "j2cli[yaml]" --user
sudo PATH=~/.local/bin:$PATH make kind-init-ipv6
- name: Wait for build to succeed
uses: fountainhead/action-wait-for-check@v1.0.0
id: wait-for-build
with:
token: ${{ secrets.GITHUB_TOKEN }}
checkName: Build x86
ref: ${{ github.event.pull_request.head.sha || github.sha }}

- name: Download image
uses: actions/download-artifact@v2
with:
Expand Down Expand Up @@ -474,7 +530,6 @@ jobs:
sh dist/images/cleanup.sh
ipv6-underlay-e2e-single-nic:
needs: build
name: ipv6-underlay-e2e-single-nic
runs-on: ubuntu-18.04
timeout-minutes: 30
Expand All @@ -494,6 +549,14 @@ jobs:
pip install "j2cli[yaml]" --user
sudo PATH=~/.local/bin:$PATH make kind-init-ipv6
- name: Wait for build to succeed
uses: fountainhead/action-wait-for-check@v1.0.0
id: wait-for-build
with:
token: ${{ secrets.GITHUB_TOKEN }}
checkName: Build x86
ref: ${{ github.event.pull_request.head.sha || github.sha }}

- name: Download image
uses: actions/download-artifact@v2
with:
Expand Down Expand Up @@ -543,7 +606,6 @@ jobs:
'
dual-stack-e2e:
needs: build
name: dual-stack-e2e
runs-on: ubuntu-18.04
timeout-minutes: 30
Expand All @@ -563,6 +625,14 @@ jobs:
pip install "j2cli[yaml]" --user
sudo PATH=~/.local/bin:$PATH make kind-init-dual
- name: Wait for build to succeed
uses: fountainhead/action-wait-for-check@v1.0.0
id: wait-for-build
with:
token: ${{ secrets.GITHUB_TOKEN }}
checkName: Build x86
ref: ${{ github.event.pull_request.head.sha || github.sha }}

- name: Download image
uses: actions/download-artifact@v2
with:
Expand Down Expand Up @@ -596,7 +666,6 @@ jobs:
sh dist/images/cleanup.sh
dual-stack-underlay-e2e-single-nic:
needs: build
name: dual-stack-underlay-e2e-single-nic
runs-on: ubuntu-18.04
timeout-minutes: 30
Expand All @@ -616,6 +685,14 @@ jobs:
pip install "j2cli[yaml]" --user
sudo PATH=~/.local/bin:$PATH make kind-init-dual
- name: Wait for build to succeed
uses: fountainhead/action-wait-for-check@v1.0.0
id: wait-for-build
with:
token: ${{ secrets.GITHUB_TOKEN }}
checkName: Build x86
ref: ${{ github.event.pull_request.head.sha || github.sha }}

- name: Download image
uses: actions/download-artifact@v2
with:
Expand Down Expand Up @@ -665,7 +742,6 @@ jobs:
'
no-lb-e2e:
needs: build
name: disable-loadbalancer-e2e
runs-on: ubuntu-18.04
timeout-minutes: 30
Expand All @@ -685,6 +761,14 @@ jobs:
pip install "j2cli[yaml]" --user
sudo PATH=~/.local/bin:$PATH make kind-init
- name: Wait for build to succeed
uses: fountainhead/action-wait-for-check@v1.0.0
id: wait-for-build
with:
token: ${{ secrets.GITHUB_TOKEN }}
checkName: Build x86
ref: ${{ github.event.pull_request.head.sha || github.sha }}

- name: Download image
uses: actions/download-artifact@v2
with:
Expand Down Expand Up @@ -716,7 +800,6 @@ jobs:
sh dist/images/cleanup.sh
no-lb-iptables-e2e:
needs: build
name: disable-loadbalancer-iptables-e2e
runs-on: ubuntu-18.04
timeout-minutes: 30
Expand All @@ -736,6 +819,14 @@ jobs:
pip install "j2cli[yaml]" --user
sudo PATH=~/.local/bin:$PATH make kind-init-iptables
- name: Wait for build to succeed
uses: fountainhead/action-wait-for-check@v1.0.0
id: wait-for-build
with:
token: ${{ secrets.GITHUB_TOKEN }}
checkName: Build x86
ref: ${{ github.event.pull_request.head.sha || github.sha }}

- name: Download image
uses: actions/download-artifact@v2
with:
Expand Down Expand Up @@ -767,7 +858,6 @@ jobs:
sh dist/images/cleanup.sh
no-np-e2e:
needs: build
name: disable-network-policy-e2e
runs-on: ubuntu-18.04
timeout-minutes: 30
Expand All @@ -787,6 +877,14 @@ jobs:
pip install "j2cli[yaml]" --user
sudo PATH=~/.local/bin:$PATH make kind-init
- name: Wait for build to succeed
uses: fountainhead/action-wait-for-check@v1.0.0
id: wait-for-build
with:
token: ${{ secrets.GITHUB_TOKEN }}
checkName: Build x86
ref: ${{ github.event.pull_request.head.sha || github.sha }}

- name: Download image
uses: actions/download-artifact@v2
with:
Expand Down

0 comments on commit 6719ee2

Please sign in to comment.