-
Notifications
You must be signed in to change notification settings - Fork 6
59 lines (49 loc) · 1.93 KB
/
build_tiber.yml
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
57
58
59
name: Docker Build
on:
workflow_call:
workflow_dispatch:
pull_request:
push:
branches: [ "main" ]
permissions:
contents: read
env:
BUILD_TYPE: "Release"
DOCKER_IMAGE_NAME: "docker.io/ovc/tiber-broadcast-suite"
DOCKER_IMAGE_TAG: "${{ github.sha }}"
DEBIAN_FRONTEND: "noninteractive"
jobs:
docker:
name: "Dockerfile build for Intel® Tiber™ Broadcast Suite"
runs-on: ubuntu-22.04
timeout-minutes: 120
steps:
- name: "Preparation: Harden Runner"
uses: step-security/harden-runner@17d0e2bd7d51742c71671bd19fa12bdc9d40a3d6 # v2.8.1
with:
egress-policy: audit
- name: "Preparation: Repository Checkout"
uses: actions/checkout@a5ac7e51b41094c92402da3b24376905380afc29 # v4.1.6
- name: "Configuration: QEMU for Docker setup"
uses: docker/setup-qemu-action@68827325e0b33c7199eb31dd4e31fbe9023e06e3 # v3.0.0
- name: "Configuration: Docker with Buildx Toolkit set up"
uses: docker/setup-buildx-action@d70bba72b1f3fd22344832f00baa16ece964efeb # v3.3.0
with:
buildkitd-flags: --debug
- name: "Validation: Build/Push Dokcerfile"
uses: docker/build-push-action@ca052bb54ab0790a636c9b5f226502c73d547a25 # v5.4.0
with:
file: Dockerfile
context: .
push: false
tags: "${{ env.DOCKER_IMAGE_NAME }}:${{ env.DOCKER_IMAGE_TAG }}"
- name: "Validation: Run Trivy vulnerability scanner on image"
uses: aquasecurity/trivy-action@595be6a0f6560a0a8fc419ddf630567fc623531d # v0.22.0
with:
image-ref: "${{ env.DOCKER_IMAGE_NAME }}:${{ env.DOCKER_IMAGE_TAG }}"
format: "sarif"
output: "trivy-image-scan-tiber-${{ env.DOCKER_IMAGE_TAG }}.sarif"
- name: "Finish: Upload Trivy scan results to GitHub Security tab"
uses: github/codeql-action/upload-sarif@2e230e8fe0ad3a14a340ad0815ddb96d599d2aff # v3.25.8
with:
sarif_file: "trivy-image-scan-tiber-${{ env.DOCKER_IMAGE_TAG }}.sarif"