Skip to content

Commit 450068f

Browse files
authored
Merge pull request #1051 from clearlydefined/actions-docker-build-job
Move docker build to separate job
2 parents 4406197 + 3510524 commit 450068f

File tree

1 file changed

+11
-4
lines changed

1 file changed

+11
-4
lines changed

.github/workflows/test.yml

Lines changed: 11 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
name: Run tests
1+
name: Run Docker build and tests
22

33
on:
44
push:
@@ -13,11 +13,12 @@ permissions:
1313

1414
jobs:
1515
test:
16+
name: Run tests
1617
runs-on: ubuntu-latest
1718
steps:
18-
- uses: actions/checkout@v4.1.1
19+
- uses: actions/checkout@v4
1920

20-
- uses: actions/setup-node@v4.0.1
21+
- uses: actions/setup-node@v4
2122
with:
2223
node-version: 14
2324
cache: 'npm'
@@ -31,5 +32,11 @@ jobs:
3132
- name: Run tests
3233
run: npm test
3334

35+
docker-build:
36+
name: Build Docker image
37+
runs-on: ubuntu-latest
38+
steps:
39+
- uses: actions/checkout@v4
40+
3441
- name: Docker build
35-
run: docker build -t clearlydefined/website:latest .
42+
run: docker build .

0 commit comments

Comments
 (0)