Skip to content

Commit 3efb219

Browse files
committed
add build action for PRs and on main
1 parent 2db4a8c commit 3efb219

File tree

1 file changed

+26
-0
lines changed

1 file changed

+26
-0
lines changed

.github/workflows/build.yml

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
name: Docker Build
2+
3+
on:
4+
push:
5+
branches: [ main ]
6+
pull_request:
7+
branches: [ main ]
8+
9+
jobs:
10+
build:
11+
runs-on: ubuntu-latest
12+
13+
steps:
14+
- name: Checkout code
15+
uses: actions/checkout@v4
16+
17+
- name: Set up Docker Buildx
18+
uses: docker/setup-buildx-action@v3
19+
20+
- name: Build Docker image
21+
uses: docker/build-push-action@v5
22+
with:
23+
context: .
24+
push: false
25+
cache-from: type=gha
26+
cache-to: type=gha,mode=max

0 commit comments

Comments
 (0)