From 41eb1728a25fd5a1b67089312df3441a9d9c1cba Mon Sep 17 00:00:00 2001 From: imdingtalk Date: Fri, 16 Sep 2022 15:45:01 +0800 Subject: [PATCH] Deal with the problem that the latest coredns cannot be pulled checkout by action instead git clone Signed-off-by: imdingtalk --- .github/workflows/auto-build.yml | 6 +++--- context/rootfs/etc/kubeadm.yml | 4 ++-- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/.github/workflows/auto-build.yml b/.github/workflows/auto-build.yml index b670e3f..cb70dab 100644 --- a/.github/workflows/auto-build.yml +++ b/.github/workflows/auto-build.yml @@ -11,13 +11,13 @@ jobs: permissions: issues: write steps: - + - name: Check out code + uses: actions/checkout@v2 - name: Auto build image id: autobuild run: | commentbody="${{github.event.comment.body}}" commentbody=$(echo $commentbody | sed "s/\/imagebuild//g") - sudo git clone https://github.com/sealerio/basefs.git && cd basefs sudo touch autobuild.log && sudo chmod 666 autobuild.log && sudo bash auto-build.sh --username="${{secrets.REGISTRY_USERNAME}}" --password="${{secrets.REGISTRY_PASSWORD}}" $commentbody > autobuild.log && cat autobuild.log echo "::set-output name=info::$(grep 'cri:' autobuild.log))" @@ -26,4 +26,4 @@ jobs: with: issue-number: ${{ github.event.issue.number }} body: | - ${{ steps.autobuild.outputs.info }} \ No newline at end of file + ${{ steps.autobuild.outputs.info }} diff --git a/context/rootfs/etc/kubeadm.yml b/context/rootfs/etc/kubeadm.yml index d512c22..df09e10 100644 --- a/context/rootfs/etc/kubeadm.yml +++ b/context/rootfs/etc/kubeadm.yml @@ -50,7 +50,7 @@ etcd: dataDir: "" extraArgs: listen-metrics-urls: http://0.0.0.0:2381 -imageRepository: k8s.gcr.io +#imageRepository: k8s.gcr.io kind: ClusterConfiguration kubernetesVersion: v1.19.8 networking: @@ -197,4 +197,4 @@ udpIdleTimeout: 0s winkernel: enableDSR: false networkName: "" - sourceVip: "" \ No newline at end of file + sourceVip: ""