This commit is contained in:
@@ -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
|
||||||
|
|||||||
@@ -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
|
||||||
|
|||||||
Reference in New Issue
Block a user