Skip to content

Commit 12b20d4

Browse files
authored
feat: add build workflow (#22)
1 parent 8485df0 commit 12b20d4

1 file changed

Lines changed: 43 additions & 0 deletions

File tree

.github/workflows/build.yaml

Lines changed: 43 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,43 @@
1+
name: Build
2+
3+
on:
4+
push:
5+
branches:
6+
- main
7+
- master
8+
paths-ignore:
9+
- 'docs/**'
10+
- '*.md'
11+
pull_request:
12+
types: [opened, synchronize]
13+
branches:
14+
- main
15+
- master
16+
paths-ignore:
17+
- 'docs/**'
18+
- '*.md'
19+
workflow_dispatch:
20+
21+
jobs:
22+
build:
23+
name: Build Docker image
24+
runs-on: ubuntu-latest
25+
permissions:
26+
contents: read
27+
packages: write
28+
29+
steps:
30+
- name: Checkout
31+
uses: actions/checkout@v4
32+
33+
- name: Set up Docker Buildx
34+
uses: docker/setup-buildx-action@v3
35+
36+
- name: Build
37+
uses: docker/build-push-action@v6
38+
with:
39+
context: .
40+
file: build/Dockerfile
41+
push: false
42+
cache-from: type=gha
43+
cache-to: type=gha,mode=max

0 commit comments

Comments
 (0)