Skip to content

Commit eb6ec71

Browse files
committed
fixing docker on CI
1 parent 8669762 commit eb6ec71

File tree

2 files changed

+21
-6
lines changed

2 files changed

+21
-6
lines changed

.github/workflows/ci.yml

Lines changed: 18 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,16 @@ jobs:
66
build:
77
runs-on: ubuntu-23.04
88

9+
services:
10+
docker:
11+
image: docker:dind
12+
options: >-
13+
--privileged
14+
--health-cmd "docker info"
15+
--health-interval 10s
16+
--health-timeout 5s
17+
--health-retries 5
18+
919
steps:
1020
- uses: actions/checkout@v3
1121

@@ -16,8 +26,13 @@ jobs:
1626
distribution: 'openjdk'
1727
cache: 'maven'
1828

19-
- name: Build with Make
20-
run: make build
29+
- name: Set up Docker
30+
uses: docker/setup-buildx-action@v2
31+
32+
- name: Build
33+
run: |
34+
chmod +x mvnw
35+
make build
2136
22-
- name: Run tests
37+
- name: Test
2338
run: make test

Makefile

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
1-
.PHONY: build test docker-build docker-push
1+
.PHONY: build test
22

33
build:
4-
./mvnw clean package -DskipTests
4+
./mvnw clean package -DskipTests
55

66
test:
7-
./mvnw test
7+
./mvnw test

0 commit comments

Comments
 (0)