@@ -1654,8 +1654,8 @@ jobs:
1654
1654
- name : Cleanup
1655
1655
run : sh -x dist/images/cleanup.sh
1656
1656
1657
- kube-ovn-security -e2e :
1658
- name : Kube-OVN Security E2E
1657
+ kube-ovn-ha -e2e :
1658
+ name : Kube-OVN HA E2E
1659
1659
needs :
1660
1660
- build-kube-ovn
1661
1661
- build-e2e-binaries
@@ -1752,117 +1752,26 @@ jobs:
1752
1752
env :
1753
1753
E2E_BRANCH : ${{ github.base_ref || github.ref_name }}
1754
1754
E2E_IP_FAMILY : ${{ matrix.ip-family }}
1755
- run : make kube-ovn-security-e2e
1755
+ run : |
1756
+ make kube-ovn-security-e2e
1757
+ make kube-ovn-ha-e2e
1756
1758
1757
1759
- name : kubectl ko log
1758
1760
if : failure()
1759
1761
run : |
1760
1762
make kubectl-ko-log
1761
- mv kubectl-ko-log.tar.gz kube-ovn-security -e2e-${{ matrix.ssl }}-${{ matrix.bind-local }}-${{ matrix.ip-family }}-ko-log.tar.gz
1763
+ mv kubectl-ko-log.tar.gz kube-ovn-ha -e2e-${{ matrix.ssl }}-${{ matrix.bind-local }}-${{ matrix.ip-family }}-ko-log.tar.gz
1762
1764
1763
1765
- name : upload kubectl ko log
1764
1766
uses : actions/upload-artifact@v3
1765
1767
if : failure()
1766
1768
with :
1767
- name : kube-ovn-security -e2e-${{ matrix.ssl }}-${{ matrix.bind-local }}-${{ matrix.ip-family }}-ko-log
1768
- path : kube-ovn-security -e2e-${{ matrix.ssl }}-${{ matrix.bind-local }}-${{ matrix.ip-family }}-ko-log.tar.gz
1769
+ name : kube-ovn-ha -e2e-${{ matrix.ssl }}-${{ matrix.bind-local }}-${{ matrix.ip-family }}-ko-log
1770
+ path : kube-ovn-ha -e2e-${{ matrix.ssl }}-${{ matrix.bind-local }}-${{ matrix.ip-family }}-ko-log.tar.gz
1769
1771
1770
1772
- name : Cleanup
1771
1773
run : sh -x dist/images/cleanup.sh
1772
1774
1773
- push :
1774
- name : Push Images
1775
- needs :
1776
- - build-centos-compile
1777
- - k8s-conformance-e2e
1778
- - k8s-netpol-e2e
1779
- - k8s-netpol-legacy-e2e
1780
- - cyclonus-netpol-e2e
1781
- - kube-ovn-conformance-e2e
1782
- - kube-ovn-ic-conformance-e2e
1783
- - ovn-vpc-nat-gw-conformance-e2e
1784
- - iptables-vpc-nat-gw-conformance-e2e
1785
- - webhook-e2e
1786
- - lb-svc-e2e
1787
- - underlay-logical-gateway-installation-test
1788
- - chart-installation-test
1789
- - installation-compatibility-test
1790
- - no-ovn-lb-test
1791
- - no-np-test
1792
- - cilium-chaining-e2e
1793
- - kube-ovn-security-e2e
1794
- - kubevirt-e2e
1795
- if : always() && !contains(needs.*.result, 'failure') && !contains(needs.*.result, 'cancelled')
1796
- runs-on : ubuntu-22.04
1797
- steps :
1798
- - uses : actions/checkout@v3
1799
-
1800
- - name : Download kube-ovn image
1801
- uses : actions/download-artifact@v3
1802
- with :
1803
- name : kube-ovn
1804
-
1805
- - name : Download vpc-nat-gateway image
1806
- uses : actions/download-artifact@v3
1807
- with :
1808
- name : vpc-nat-gateway
1809
-
1810
- - name : Download centos7-compile image
1811
- uses : actions/download-artifact@v3
1812
- with :
1813
- name : centos7-compile
1814
-
1815
- # - name: Download centos8-compile image
1816
- # uses: actions/download-artifact@v3
1817
- # with:
1818
- # name: centos8-compile
1819
-
1820
- - name : Load image
1821
- run : |
1822
- docker load --input kube-ovn.tar
1823
- docker load --input vpc-nat-gateway.tar
1824
- docker load --input centos7-compile.tar
1825
- # docker load --input centos8-compile.tar
1826
-
1827
- - name : Security Scan
1828
- run : |
1829
- sudo apt-get install wget apt-transport-https gnupg lsb-release
1830
- wget -qO - https://aquasecurity.github.io/trivy-repo/deb/public.key | sudo apt-key add -
1831
- echo deb https://aquasecurity.github.io/trivy-repo/deb $(lsb_release -sc) main | sudo tee -a /etc/apt/sources.list.d/trivy.list
1832
- sudo apt-get update
1833
- sudo apt-get install trivy
1834
- make scan
1835
-
1836
- - name : Push
1837
- if : github.ref_name == github.event.repository.default_branch || startsWith(github.ref_name, 'release-')
1838
- env :
1839
- DOCKER_USERNAME : ${{ secrets.DOCKER_USERNAME }}
1840
- DOCKER_PASSWORD : ${{ secrets.DOCKER_PASSWORD }}
1841
- COMMIT : ${{ github.sha }}
1842
- run : |
1843
- cat VERSION
1844
- TAG=$(cat VERSION)
1845
- echo "$DOCKER_PASSWORD" | docker login -u "$DOCKER_USERNAME" --password-stdin
1846
- docker tag kubeovn/kube-ovn:$TAG kubeovn/kube-ovn-dev:$COMMIT-x86
1847
- docker tag kubeovn/kube-ovn:$TAG kubeovn/kube-ovn:$TAG-x86
1848
- docker tag kubeovn/kube-ovn:$TAG-debug kubeovn/kube-ovn:$TAG-debug-x86
1849
- docker tag kubeovn/vpc-nat-gateway:$TAG kubeovn/vpc-nat-gateway-dev:$COMMIT-x86
1850
- docker tag kubeovn/vpc-nat-gateway:$TAG kubeovn/vpc-nat-gateway:$TAG-x86
1851
- docker tag kubeovn/centos7-compile:$TAG kubeovn/centos7-compile-dev:$TAG-x86
1852
- docker tag kubeovn/centos7-compile:$TAG kubeovn/centos7-compile:$TAG-x86
1853
- # docker tag kubeovn/centos8-compile:$TAG kubeovn/centos8-compile-dev:$TAG-x86
1854
- # docker tag kubeovn/centos8-compile:$TAG kubeovn/centos8-compile:$TAG-x86
1855
- docker images
1856
- docker push kubeovn/kube-ovn:$TAG-x86
1857
- docker push kubeovn/kube-ovn-dev:$COMMIT-x86
1858
- docker push kubeovn/kube-ovn:$TAG-debug-x86
1859
- docker push kubeovn/vpc-nat-gateway:$TAG-x86
1860
- docker push kubeovn/vpc-nat-gateway-dev:$COMMIT-x86
1861
- docker push kubeovn/centos7-compile:$TAG-x86
1862
- docker push kubeovn/centos7-compile-dev:$TAG-x86
1863
- # docker push kubeovn/centos8-compile:$TAG-x86
1864
- # docker push kubeovn/centos8-compile-dev:$TAG-x86
1865
-
1866
1775
kube-ovn-submariner-conformance-e2e :
1867
1776
name : Kube-OVN Submariner Conformance E2E
1868
1777
needs :
@@ -2114,3 +2023,97 @@ jobs:
2114
2023
- name : Run E2E
2115
2024
working-directory : ${{ env.E2E_DIR }}
2116
2025
run : make ovn-vpc-nat-gw-conformance-e2e
2026
+
2027
+ push :
2028
+ name : Push Images
2029
+ needs :
2030
+ - build-centos-compile
2031
+ - k8s-conformance-e2e
2032
+ - k8s-netpol-e2e
2033
+ - k8s-netpol-legacy-e2e
2034
+ - cyclonus-netpol-e2e
2035
+ - kube-ovn-conformance-e2e
2036
+ - kube-ovn-ic-conformance-e2e
2037
+ - ovn-vpc-nat-gw-conformance-e2e
2038
+ - iptables-vpc-nat-gw-conformance-e2e
2039
+ - webhook-e2e
2040
+ - lb-svc-e2e
2041
+ - underlay-logical-gateway-installation-test
2042
+ - chart-installation-test
2043
+ - installation-compatibility-test
2044
+ - no-ovn-lb-test
2045
+ - no-np-test
2046
+ - cilium-chaining-e2e
2047
+ - kube-ovn-ha-e2e
2048
+ - kubevirt-e2e
2049
+ - kube-ovn-submariner-conformance-e2e
2050
+ if : always() && !contains(needs.*.result, 'failure') && !contains(needs.*.result, 'cancelled')
2051
+ runs-on : ubuntu-22.04
2052
+ steps :
2053
+ - uses : actions/checkout@v3
2054
+
2055
+ - name : Download kube-ovn image
2056
+ uses : actions/download-artifact@v3
2057
+ with :
2058
+ name : kube-ovn
2059
+
2060
+ - name : Download vpc-nat-gateway image
2061
+ uses : actions/download-artifact@v3
2062
+ with :
2063
+ name : vpc-nat-gateway
2064
+
2065
+ - name : Download centos7-compile image
2066
+ uses : actions/download-artifact@v3
2067
+ with :
2068
+ name : centos7-compile
2069
+
2070
+ # - name: Download centos8-compile image
2071
+ # uses: actions/download-artifact@v3
2072
+ # with:
2073
+ # name: centos8-compile
2074
+
2075
+ - name : Load image
2076
+ run : |
2077
+ docker load --input kube-ovn.tar
2078
+ docker load --input vpc-nat-gateway.tar
2079
+ docker load --input centos7-compile.tar
2080
+ # docker load --input centos8-compile.tar
2081
+
2082
+ - name : Security Scan
2083
+ run : |
2084
+ sudo apt-get install wget apt-transport-https gnupg lsb-release
2085
+ wget -qO - https://aquasecurity.github.io/trivy-repo/deb/public.key | sudo apt-key add -
2086
+ echo deb https://aquasecurity.github.io/trivy-repo/deb $(lsb_release -sc) main | sudo tee -a /etc/apt/sources.list.d/trivy.list
2087
+ sudo apt-get update
2088
+ sudo apt-get install trivy
2089
+ make scan
2090
+
2091
+ - name : Push
2092
+ if : github.ref_name == github.event.repository.default_branch || startsWith(github.ref_name, 'release-')
2093
+ env :
2094
+ DOCKER_USERNAME : ${{ secrets.DOCKER_USERNAME }}
2095
+ DOCKER_PASSWORD : ${{ secrets.DOCKER_PASSWORD }}
2096
+ COMMIT : ${{ github.sha }}
2097
+ run : |
2098
+ cat VERSION
2099
+ TAG=$(cat VERSION)
2100
+ echo "$DOCKER_PASSWORD" | docker login -u "$DOCKER_USERNAME" --password-stdin
2101
+ docker tag kubeovn/kube-ovn:$TAG kubeovn/kube-ovn-dev:$COMMIT-x86
2102
+ docker tag kubeovn/kube-ovn:$TAG kubeovn/kube-ovn:$TAG-x86
2103
+ docker tag kubeovn/kube-ovn:$TAG-debug kubeovn/kube-ovn:$TAG-debug-x86
2104
+ docker tag kubeovn/vpc-nat-gateway:$TAG kubeovn/vpc-nat-gateway-dev:$COMMIT-x86
2105
+ docker tag kubeovn/vpc-nat-gateway:$TAG kubeovn/vpc-nat-gateway:$TAG-x86
2106
+ docker tag kubeovn/centos7-compile:$TAG kubeovn/centos7-compile-dev:$TAG-x86
2107
+ docker tag kubeovn/centos7-compile:$TAG kubeovn/centos7-compile:$TAG-x86
2108
+ # docker tag kubeovn/centos8-compile:$TAG kubeovn/centos8-compile-dev:$TAG-x86
2109
+ # docker tag kubeovn/centos8-compile:$TAG kubeovn/centos8-compile:$TAG-x86
2110
+ docker images
2111
+ docker push kubeovn/kube-ovn:$TAG-x86
2112
+ docker push kubeovn/kube-ovn-dev:$COMMIT-x86
2113
+ docker push kubeovn/kube-ovn:$TAG-debug-x86
2114
+ docker push kubeovn/vpc-nat-gateway:$TAG-x86
2115
+ docker push kubeovn/vpc-nat-gateway-dev:$COMMIT-x86
2116
+ docker push kubeovn/centos7-compile:$TAG-x86
2117
+ docker push kubeovn/centos7-compile-dev:$TAG-x86
2118
+ # docker push kubeovn/centos8-compile:$TAG-x86
2119
+ # docker push kubeovn/centos8-compile-dev:$TAG-x86
0 commit comments