This commit is contained in:
@@ -29,7 +29,7 @@ env:
|
||||
|
||||
jobs:
|
||||
build-and-push:
|
||||
runs-on: openim
|
||||
runs-on: ubuntu-latest
|
||||
permissions:
|
||||
contents: read
|
||||
packages: write
|
||||
|
||||
@@ -12,7 +12,7 @@ permissions:
|
||||
|
||||
jobs:
|
||||
build:
|
||||
runs-on: openim
|
||||
runs-on: ubuntu-latest
|
||||
|
||||
env:
|
||||
REGISTRY: git.imall.cloud
|
||||
@@ -22,9 +22,33 @@ jobs:
|
||||
shell: sh
|
||||
run: |
|
||||
set -eu
|
||||
if ! command -v git >/dev/null 2>&1; then
|
||||
apk add --no-cache git openssh-client ca-certificates
|
||||
if command -v git >/dev/null 2>&1; then
|
||||
exit 0
|
||||
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
|
||||
shell: sh
|
||||
|
||||
Reference in New Issue
Block a user