This repository has been archived by the owner on Nov 13, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 6
55 lines (41 loc) · 1.63 KB
/
pr-build.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
name: PR build
on:
pull_request:
branches: [main]
env:
IMAGE_TAG: ${{ github.event.number }}
jobs:
build-galasabld:
name: Build galasabld
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Setup up Go
uses: actions/setup-go@v5
with:
go-version: 1.22
- name: Build galasabld using the Makefile
run: |
make all
- name: Build and test galasabld image
run: |
docker build -t galasabld:${{env.IMAGE_TAG}} --build-arg platform=linux-amd64 -f dockerfiles/galasabld/dockerfile.galasabld .
docker run --rm galasabld:${{env.IMAGE_TAG}}
build-openapi2beans:
name: Build openapi2beans
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Setup up Go
uses: actions/setup-go@v5
with:
go-version: 1.22
- name: Build and test openapi2beans using the Makefile
run: |
make all -C openapi2beans/
- name: Build and test openapi2beans image
run: |
docker build -t openapi2beans:${{env.IMAGE_TAG}} --build-arg platform=linux-x86_64 -f dockerfiles/openapi2beans/dockerfile.openapi2beans .
docker run --rm openapi2beans:${{env.IMAGE_TAG}}