fix(ci): re-enable docker-build with proper DinD configuration using TCP endpoint
This commit is contained in:
parent
5239932331
commit
3b570e7838
1 changed files with 35 additions and 0 deletions
|
|
@ -80,3 +80,38 @@ jobs:
|
||||||
- name: Restore integration tests
|
- name: Restore integration tests
|
||||||
working-directory: ./backend
|
working-directory: ./backend
|
||||||
run: mv tests.disabled tests
|
run: mv tests.disabled tests
|
||||||
|
|
||||||
|
docker-build:
|
||||||
|
runs-on: docker
|
||||||
|
container:
|
||||||
|
image: docker:latest
|
||||||
|
services:
|
||||||
|
docker-in-docker:
|
||||||
|
image: docker:dind
|
||||||
|
env:
|
||||||
|
DOCKER_TLS_CERTDIR: ""
|
||||||
|
env:
|
||||||
|
DOCKER_HOST: tcp://docker-in-docker:2375
|
||||||
|
DOCKER_TLS_CERTDIR: ""
|
||||||
|
DOCKER_DRIVER: overlay2
|
||||||
|
needs: build
|
||||||
|
|
||||||
|
steps:
|
||||||
|
- name: Install Node.js
|
||||||
|
run: |
|
||||||
|
apk add --no-cache nodejs npm
|
||||||
|
|
||||||
|
- uses: https://github.com/actions/checkout@v4
|
||||||
|
|
||||||
|
- name: Verify Docker connection
|
||||||
|
run: docker info
|
||||||
|
|
||||||
|
- name: Build backend Docker image
|
||||||
|
run: |
|
||||||
|
cd backend
|
||||||
|
docker build -t normogen-backend:latest .
|
||||||
|
|
||||||
|
- name: Build frontend Docker image
|
||||||
|
run: |
|
||||||
|
cd frontend
|
||||||
|
docker build -t normogen-frontend:latest .
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue