Skip to content

Commit 09c49fc

Browse files
committed
ci: add GitHub Actions workflow to build Docker image on Dockerfile changes
1 parent 1d15d24 commit 09c49fc

1 file changed

Lines changed: 27 additions & 0 deletions

File tree

.github/workflows/docker-build.yml

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
name: Build Docker image
2+
3+
on:
4+
push:
5+
paths:
6+
- 'docker/Dockerfile'
7+
pull_request:
8+
paths:
9+
- 'docker/Dockerfile'
10+
workflow_dispatch:
11+
12+
jobs:
13+
build:
14+
name: Build Docker image
15+
runs-on: ubuntu-22.04
16+
permissions:
17+
contents: read
18+
steps:
19+
-
20+
name: Check out the repo
21+
uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 #6.0.1
22+
-
23+
name: Build Docker image
24+
uses: docker/build-push-action@263435318d21b8e681c14492fe198d362a7d2c83 #6.18.0
25+
with:
26+
context: ./docker
27+
push: false

0 commit comments

Comments
 (0)