From 5192c4ce76ec6ed9a326768fc5dd35a26916d2ca Mon Sep 17 00:00:00 2001 From: Marcus Date: Sat, 31 Jan 2026 14:13:25 -0300 Subject: [PATCH] ajustes novos --- .forgejo/workflows/deploy.yaml | 19 +++++++++++-------- 1 file changed, 11 insertions(+), 8 deletions(-) diff --git a/.forgejo/workflows/deploy.yaml b/.forgejo/workflows/deploy.yaml index 7c6a231..c977b84 100644 --- a/.forgejo/workflows/deploy.yaml +++ b/.forgejo/workflows/deploy.yaml @@ -20,9 +20,12 @@ jobs: shell: sh steps: - - name: Install required tools (docker-cli + curl) + - name: Check Docker availability 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 - name: Checkout code @@ -67,13 +70,13 @@ jobs: shell: sh steps: - - name: Install tools (curl + kubectl) + - name: Install kubectl (no package manager) run: | - apk add --no-cache curl - K8S_VERSION=$(curl -s https://dl.k8s.io/release/stable.txt) - curl -L -o /usr/local/bin/kubectl \ - https://dl.k8s.io/release/${K8S_VERSION}/bin/linux/amd64/kubectl - chmod +x /usr/local/bin/kubectl + if ! command -v kubectl >/dev/null 2>&1; then + wget -qO /usr/local/bin/kubectl \ + https://dl.k8s.io/release/v1.30.0/bin/linux/amd64/kubectl || exit 1 + chmod +x /usr/local/bin/kubectl + fi kubectl version --client - name: Checkout code