From 8a6fe889a4a663af0109c783958be9f45bda7991 Mon Sep 17 00:00:00 2001 From: 46797536 <46241382+46797536@users.noreply.github.com> Date: Tue, 2 Jul 2024 14:46:11 +0800 Subject: [PATCH] Update docker.yaml --- .github/workflows/docker.yaml | 20 +++++++++++++------- 1 file changed, 13 insertions(+), 7 deletions(-) diff --git a/.github/workflows/docker.yaml b/.github/workflows/docker.yaml index 3fa7cbcfd3..8aca26d516 100644 --- a/.github/workflows/docker.yaml +++ b/.github/workflows/docker.yaml @@ -18,19 +18,25 @@ jobs: name: Pull runs-on: ubuntu-latest steps: - - - - name: Check out code - uses: actions/checkout@v2 - - - name: Build and push image Aliyun + - name: Setup sealos run: | set -e curl -LO https://github.com/labring/sealos/releases/download/v4.3.3/sealos_4.3.3_linux_amd64.tar.gz tar -xzvf sealos_4.3.3_linux_amd64.tar.gz chmod +x sealos - alias sealos="$PWD/sealos" + echo "$PWD/sealos" >> $GITHUB_PATH + cat $GITHUB_PATH + ls $PWD/sealos + - name: Verify sealos installation + run: sealos version # 或者任何其他命令来验证sealos是否正确安装 + + - name: Check out code + uses: actions/checkout@v2 + + - name: Build and push image Aliyun + run: | + set -e sealos login -u $ALIYUN_REGISTRY_USER -p $ALIYUN_REGISTRY_PASSWORD $ALIYUN_REGISTRY while IFS= read -r line; do [[ -z "$line" ]] && continue