-
Notifications
You must be signed in to change notification settings - Fork 10
58 lines (45 loc) · 1.09 KB
/
00-build-container.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
name: Build QFlex container
run-name: '[${{ github.event_name }}] ${{ github.ref_name }}'
env:
DOCKER_BUILD_SUMMARY: true
DOCKER_BUILD_RECORD_UPLOAD: false
on:
push:
branches:
paths-ignore:
- 'docs/**'
- '*.md'
pull_request:
branches:
paths-ignore:
- 'docs/**'
- '*.md'
concurrency:
group: ${{ github.workflow }}
cancel-in-progress: true
jobs:
build_container:
name: Build QFlex containers
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
type:
- release
- debug
steps:
- name: Clone QFlex
uses: actions/checkout@v4
with:
submodules: true
- name: Pull QEMU's libqflex
run: git -C qemu submodule update --init --recursive --force --depth=1 middleware
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3
- name: Build and push
uses: docker/build-push-action@v6
with:
context: .
push: false
tags: parsa/qflex:latest
build-args: MODE=${{ matrix.type }}