-
Notifications
You must be signed in to change notification settings - Fork 1
44 lines (41 loc) · 1.33 KB
/
pull-request.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
name: Pull Request Check
on:
pull_request:
branches:
- main
jobs:
check-containers:
runs-on:
labels: ubuntu-latest
steps:
- uses: actions/checkout@v3
with:
fetch-depth: '0'
- name: Build Base Image
uses: docker/build-push-action@v4
with:
push: false
tags: roadiehq/broker:base
context: dockerfiles
file: dockerfiles/base.Dockerfile
- name: Build Kubernetes
uses: docker/build-push-action@v4
with:
push: false
file: dockerfiles/Dockerfile
context: dockerfiles/kubernetes
tags: roadiehq/broker:pr-${{ github.run_id }}.${{ github.run_number }}.${{ github.run_attempt }}-kubernetes
- name: Build Sonarqube
uses: docker/build-push-action@v4
with:
push: false
file: dockerfiles/Dockerfile
context: dockerfiles/sonarqube
tags: roadiehq/broker:pr-${{ github.run_id }}.${{ github.run_number }}.${{ github.run_attempt }}-sonarqube
- name: Build Jenkins
uses: docker/build-push-action@v4
with:
push: false
file: dockerfiles/Dockerfile
context: dockerfiles/jenkins
tags: roadiehq/broker:pr-${{ github.run_id }}.${{ github.run_number }}.${{ github.run_attempt }}-jenkins