From baa5d41bec126f071f070dfb9e770b004f002c01 Mon Sep 17 00:00:00 2001 From: Huarch Date: Fri, 24 Apr 2026 15:06:55 +0800 Subject: [PATCH] =?UTF-8?q?=E8=B0=83=E6=95=B4=E5=B7=A5=E4=BD=9C=E6=B5=81?= =?UTF-8?q?=E7=8E=AF=E5=A2=83=EF=BC=8C=E7=A7=BB=E9=99=A4=20Git=20=E5=92=8C?= =?UTF-8?q?=20Docker=20=E5=AE=89=E8=A3=85=E6=AD=A5=E9=AA=A4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-authored-by: Copilot --- .gitea/workflows/package.yml | 48 ++---------------------------------- 1 file changed, 2 insertions(+), 46 deletions(-) diff --git a/.gitea/workflows/package.yml b/.gitea/workflows/package.yml index 134a072..f0ca174 100644 --- a/.gitea/workflows/package.yml +++ b/.gitea/workflows/package.yml @@ -7,7 +7,7 @@ on: jobs: docker-image: - runs-on: node + runs-on: ubuntu permissions: contents: read defaults: @@ -15,55 +15,11 @@ jobs: shell: sh steps: - - name: Ensure Git is available - run: | - if command -v git >/dev/null 2>&1; then - git --version - exit 0 - fi - - if command -v apt-get >/dev/null 2>&1; then - apt-get update && apt-get install -y git - elif command -v apk >/dev/null 2>&1; then - apk add --no-cache git - elif command -v dnf >/dev/null 2>&1; then - dnf install -y git - elif command -v yum >/dev/null 2>&1; then - yum install -y git - else - echo "No supported package manager found to install git" - exit 1 - fi - - git --version - - name: Checkout code uses: actions/checkout@v4 with: github-server-url: ${{ github.server_url }} - - name: Ensure Docker CLI is available - run: | - if command -v docker >/dev/null 2>&1; then - docker --version - exit 0 - fi - - if command -v apt-get >/dev/null 2>&1; then - apt-get update && apt-get install -y docker.io - elif command -v apk >/dev/null 2>&1; then - apk add --no-cache docker-cli - elif command -v dnf >/dev/null 2>&1; then - dnf install -y docker - elif command -v yum >/dev/null 2>&1; then - yum install -y docker - else - echo "No supported package manager found to install docker" - exit 1 - fi - - docker --version - - name: Set up Docker Buildx uses: docker/setup-buildx-action@v3 @@ -105,7 +61,7 @@ jobs: -d "{\"image\":\"${IMAGE}\",\"tag\":\"${{ github.ref_name }}\",\"repo\":\"${{ github.repository }}\"}" deploy-fallback-log: - runs-on: node + runs-on: ubuntu needs: docker-image if: failure() steps: