Skip to content

Commit b7a609f

Browse files
committed
Add GitHub Actions workflow for Docker image build and testing
1 parent 4142608 commit b7a609f

1 file changed

Lines changed: 29 additions & 0 deletions

File tree

.github/workflows/main.yml

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,31 @@
1+
name: main tests
12

3+
on:
4+
push:
5+
pull_request:
6+
workflow_dispatch:
27

8+
jobs:
9+
build:
10+
runs-on: ubuntu-latest
11+
12+
steps:
13+
- name: Checkout repository
14+
uses: actions/checkout@v4
15+
with:
16+
submodules: recursive
17+
fetch-depth: 0
18+
19+
- name: Set up Docker Buildx
20+
uses: docker/setup-buildx-action@v3
21+
22+
- name: Build Docker image
23+
uses: docker/build-push-action@v5
24+
with:
25+
context: .
26+
file: ./bblab.dockerfile
27+
target: bblab-site
28+
push: false
29+
tags: cfe-lab/bblab-site:${{ github.sha }}
30+
cache-from: type=gha
31+
cache-to: type=gha,mode=max

0 commit comments

Comments
 (0)