Skip to content

Commit bcd9d01

Browse files
committed
add docker build args
1 parent 65f9657 commit bcd9d01

1 file changed

Lines changed: 11 additions & 0 deletions

File tree

.github/workflows/build_and_release_image.yml

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,14 @@ on:
77
description: 'Commit SHA for build (default: latest in branch)'
88
required: false
99
default: ''
10+
build_jobs:
11+
description: 'Number of build jobs for Docker build (default: auto)'
12+
required: false
13+
default: '0'
14+
run_tests:
15+
description: 'Run tests during Docker build (0 or 1)'
16+
required: false
17+
default: '0'
1018

1119
jobs:
1220
build:
@@ -47,6 +55,9 @@ jobs:
4755
file: ./Dockerfile
4856
push: true
4957
no-cache: true
58+
build-args: |
59+
BUILD_JOBS=${{ github.event.inputs.build_jobs || '0' }}
60+
RUN_TESTS=${{ github.event.inputs.run_tests || '0' }}
5061
tags: |
5162
${{ secrets.CI_REGISTRY }}/${{ secrets.CI_REGISTRY_REPO }}/${{ vars.SERVICE_NAME }}-${{ github.ref_name }}:${{ env.SERVICE_TAG }}
5263
${{ secrets.CI_REGISTRY }}/${{ secrets.CI_REGISTRY_REPO }}/${{ vars.SERVICE_NAME }}-${{ github.ref_name }}:latest

0 commit comments

Comments
 (0)