ci: configura deploy automatico para k3s via forgejo
This commit is contained in:
parent
6745b4602f
commit
16595c5c76
1 changed files with 4 additions and 5 deletions
|
|
@ -16,12 +16,12 @@ jobs:
|
|||
- name: Checkout code
|
||||
uses: actions/checkout@v4
|
||||
|
||||
# AJUSTE DEFINITIVO: Instala o cliente docker se ele não existir
|
||||
# AJUSTE VELOZ: Baixa o binário pronto em vez de instalar pelo sistema
|
||||
- name: Install Docker CLI
|
||||
run: |
|
||||
if ! command -v docker &> /dev/null; then
|
||||
apt-get update && apt-get install -y docker.io
|
||||
fi
|
||||
curl -fsSL https://download.docker.com/linux/static/stable/x86_64/docker-24.0.9.tgz | tar -xz --strip-components=1 -C /usr/local/bin/ docker/docker
|
||||
chmod +x /usr/local/bin/docker
|
||||
docker version --format 'Client version: {{.Client.Version}}'
|
||||
|
||||
- name: Set up Docker Buildx
|
||||
uses: docker/setup-buildx-action@v3
|
||||
|
|
@ -69,7 +69,6 @@ jobs:
|
|||
- name: Setup Kubectl
|
||||
uses: azure/k8s-set-context@v3
|
||||
with:
|
||||
method: kubeconfig
|
||||
kubeconfig: ${{ secrets.KUBECONFIG }}
|
||||
|
||||
- name: Update Kubernetes Secrets
|
||||
|
|
|
|||
Loading…
Reference in a new issue