Skip to content

Commit b9e266d

Browse files
authored
Add: docker_build pipeline (#1127)
ADD docker build pipeline update build/scan jobs names FIX: build/scan workflows reorganization move unsupported windows pipelines to legacy folder move codeQL to legacy folder
1 parent 9d534af commit b9e266d

File tree

9 files changed

+66
-5
lines changed

9 files changed

+66
-5
lines changed
File renamed without changes.
File renamed without changes.
File renamed without changes.

.github/workflows/ubuntu_build.yml renamed to .github/workflows/base_build.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
name: Ubuntu build
1+
name: Base Build
22

33
on:
44
# allow manually trigger

.github/workflows/coverity.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
1-
name: Coverity Scan
1+
name: Coverity Build
2+
23

34
on:
45
schedule:

.github/workflows/dependency-review.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
# PRs introducing known-vulnerable packages will be blocked from merging.
77
#
88
# Source repository: https://github.com/actions/dependency-review-action
9-
name: 'Dependency Review'
9+
name: Dependency Review
1010
on: [pull_request]
1111

1212
permissions:

.github/workflows/docker_build.yml

Lines changed: 60 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,60 @@
1+
name: Docker Build
2+
on:
3+
# allow manually trigger
4+
workflow_dispatch:
5+
push:
6+
branches:
7+
- main
8+
- 'maint-**'
9+
pull_request:
10+
branches:
11+
- main
12+
- 'maint-**'
13+
14+
permissions:
15+
contents: read
16+
17+
jobs:
18+
changes:
19+
runs-on: ubuntu-latest
20+
permissions:
21+
pull-requests: read
22+
outputs:
23+
changed: ${{ steps.filter.outputs.ubuntu_build == 'true' }}
24+
steps:
25+
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
26+
27+
- uses: dorny/paths-filter@de90cc6fb38fc0963ad72b210f1f284cd68cea36 # v2
28+
id: filter
29+
with:
30+
filters: .github/path_filters.yml
31+
32+
build:
33+
needs: changes
34+
if: ${{ needs.changes.outputs.changed == 'true' }}
35+
runs-on: ubuntu-22.04
36+
timeout-minutes: 120
37+
permissions:
38+
contents: read
39+
40+
steps:
41+
- name: Harden Runner
42+
uses: step-security/harden-runner@4d991eb9b905ef189e4c376166672c3f2f230481 # v2.11.0
43+
with:
44+
egress-policy: audit
45+
- name: Checkout repository
46+
uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7
47+
48+
- name: Set up Docker Buildx
49+
uses: docker/setup-buildx-action@4fd812986e6c8c2a69e18311145f9371337f27d4 # v3.4.0
50+
with:
51+
buildkitd-flags: "--debug --allow-insecure-entitlement security.insecure --allow-insecure-entitlement network.host"
52+
platforms: "linux/amd64"
53+
driver-opts: memory=14Gib,memory-swap=25Gib,env.BUILDKIT_STEP_LOG_MAX_SIZE=50000000,env.BUILDKIT_STEP_LOG_MAX_SPEED=10000000
54+
55+
- name: Build image
56+
uses: docker/build-push-action@1a162644f9a7e87d8f4b053101d1d9a712edc18c # v6.3.0
57+
with:
58+
push: false
59+
file: docker/ubuntu.dockerfile
60+
tags: mtl:latest

.github/workflows/linter.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
name: Lint Code Base
1+
name: Linter
22

33
on: [push, pull_request]
44

.github/workflows/scorecards.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
# by a third-party and are governed by separate terms of service, privacy
33
# policy, and support documentation.
44

5-
name: Scorecard supply-chain security
5+
name: Scorecard
66
on:
77
# For Branch-Protection check. Only the default branch is supported. See
88
# https://github.com/ossf/scorecard/blob/main/docs/checks.md#branch-protection

0 commit comments

Comments
 (0)