ajustes novos
This commit is contained in:
parent
07984e4c18
commit
5192c4ce76
1 changed files with 11 additions and 8 deletions
|
|
@ -20,9 +20,12 @@ jobs:
|
||||||
shell: sh
|
shell: sh
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- name: Install required tools (docker-cli + curl)
|
- name: Check Docker availability
|
||||||
run: |
|
run: |
|
||||||
apk add --no-cache docker-cli curl
|
if ! command -v docker >/dev/null 2>&1; then
|
||||||
|
echo "❌ Docker CLI not found in runner"
|
||||||
|
exit 1
|
||||||
|
fi
|
||||||
docker version
|
docker version
|
||||||
|
|
||||||
- name: Checkout code
|
- name: Checkout code
|
||||||
|
|
@ -67,13 +70,13 @@ jobs:
|
||||||
shell: sh
|
shell: sh
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- name: Install tools (curl + kubectl)
|
- name: Install kubectl (no package manager)
|
||||||
run: |
|
run: |
|
||||||
apk add --no-cache curl
|
if ! command -v kubectl >/dev/null 2>&1; then
|
||||||
K8S_VERSION=$(curl -s https://dl.k8s.io/release/stable.txt)
|
wget -qO /usr/local/bin/kubectl \
|
||||||
curl -L -o /usr/local/bin/kubectl \
|
https://dl.k8s.io/release/v1.30.0/bin/linux/amd64/kubectl || exit 1
|
||||||
https://dl.k8s.io/release/${K8S_VERSION}/bin/linux/amd64/kubectl
|
chmod +x /usr/local/bin/kubectl
|
||||||
chmod +x /usr/local/bin/kubectl
|
fi
|
||||||
kubectl version --client
|
kubectl version --client
|
||||||
|
|
||||||
- name: Checkout code
|
- name: Checkout code
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue