更换runner label
Some checks failed
itom-platform auto build image / build (push) Failing after 4m8s

This commit is contained in:
kim.dev.6789
2026-01-15 18:48:44 +08:00
parent 26f7102989
commit 3a787cfd22
2 changed files with 29 additions and 5 deletions

View File

@@ -29,7 +29,7 @@ env:
jobs: jobs:
build-and-push: build-and-push:
runs-on: openim runs-on: ubuntu-latest
permissions: permissions:
contents: read contents: read
packages: write packages: write

View File

@@ -12,7 +12,7 @@ permissions:
jobs: jobs:
build: build:
runs-on: openim runs-on: ubuntu-latest
env: env:
REGISTRY: git.imall.cloud REGISTRY: git.imall.cloud
@@ -22,9 +22,33 @@ jobs:
shell: sh shell: sh
run: | run: |
set -eu set -eu
if ! command -v git >/dev/null 2>&1; then if command -v git >/dev/null 2>&1; then
apk add --no-cache git openssh-client ca-certificates exit 0
fi fi
if command -v apt-get >/dev/null 2>&1; then
if command -v sudo >/dev/null 2>&1; then
sudo apt-get update -y
sudo apt-get install -y git openssh-client ca-certificates
else
apt-get update -y
apt-get install -y git openssh-client ca-certificates
fi
exit 0
fi
if command -v apk >/dev/null 2>&1; then
apk add --no-cache git openssh-client ca-certificates
exit 0
fi
if command -v yum >/dev/null 2>&1; then
if command -v sudo >/dev/null 2>&1; then
sudo yum install -y git openssh-clients ca-certificates
else
yum install -y git openssh-clients ca-certificates
fi
exit 0
fi
echo "ERROR: no supported package manager found to install git."
exit 1
- name: Checkout - name: Checkout
shell: sh shell: sh