ci: use node:20-alpine with docker-cli socket mount - fix node not found in dind
Some checks failed
CI/CD → Deploy via SSH / Build & Push Docker Images (push) Failing after 10s
CI/CD → Deploy via SSH / Deploy via SSH (push) Has been skipped
CI/CD → Deploy via SSH / Validate HTTPS & Endpoints (push) Has been skipped

This commit is contained in:
MatheusAlves96 2026-04-21 01:09:27 -03:00
parent caf541d750
commit 2df0fb190b

View file

@ -18,14 +18,14 @@ jobs:
name: Build & Push Docker Images name: Build & Push Docker Images
runs-on: docker runs-on: docker
container: container:
image: docker:27-dind image: node:20-alpine
env:
DOCKER_TLS_CERTDIR: ""
options: --privileged options: --privileged
volumes:
- /var/run/docker.sock:/var/run/docker.sock
steps: steps:
- name: Install git - name: Install git
run: apk add --no-cache git run: apk add --no-cache git docker-cli
- name: Checkout - name: Checkout
uses: actions/checkout@v4 uses: actions/checkout@v4
@ -73,7 +73,7 @@ jobs:
runs-on: docker runs-on: docker
needs: build needs: build
container: container:
image: alpine:3.19 image: node:20-alpine
steps: steps:
- name: Install SSH tools - name: Install SSH tools
@ -136,7 +136,7 @@ jobs:
runs-on: docker runs-on: docker
needs: [build, deploy] needs: [build, deploy]
container: container:
image: alpine:3.19 image: node:20-alpine
steps: steps:
- name: Install tools - name: Install tools