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
|
- name: Checkout code
|
||||||
uses: actions/checkout@v4
|
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
|
- name: Install Docker CLI
|
||||||
run: |
|
run: |
|
||||||
if ! command -v docker &> /dev/null; then
|
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
|
||||||
apt-get update && apt-get install -y docker.io
|
chmod +x /usr/local/bin/docker
|
||||||
fi
|
docker version --format 'Client version: {{.Client.Version}}'
|
||||||
|
|
||||||
- name: Set up Docker Buildx
|
- name: Set up Docker Buildx
|
||||||
uses: docker/setup-buildx-action@v3
|
uses: docker/setup-buildx-action@v3
|
||||||
|
|
@ -69,7 +69,6 @@ jobs:
|
||||||
- name: Setup Kubectl
|
- name: Setup Kubectl
|
||||||
uses: azure/k8s-set-context@v3
|
uses: azure/k8s-set-context@v3
|
||||||
with:
|
with:
|
||||||
method: kubeconfig
|
|
||||||
kubeconfig: ${{ secrets.KUBECONFIG }}
|
kubeconfig: ${{ secrets.KUBECONFIG }}
|
||||||
|
|
||||||
- name: Update Kubernetes Secrets
|
- name: Update Kubernetes Secrets
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue