Skip to content

Commit 1e286f9

Browse files
author
mmogos
committed
CAT-26299 Allow passing build args to build workflow
1 parent 46a2126 commit 1e286f9

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

.github/workflows/docker-build-push-test.yml

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,9 @@ permissions:
77
id-token: write
88
contents: read
99

10+
env:
11+
SLACK_CHANNEL_ID_VAR: ${{ vars.SLACK_CHANNEL_ID }}
12+
1013
jobs:
1114
build:
1215
uses: ./.github/workflows/docker-build-push.yml
@@ -19,14 +22,14 @@ jobs:
1922
image_test_tag: test
2023
build_args: |
2124
TESTING_BUILD_ARG1=testVALUE
22-
TESTING_BUILD_ARG2=${{ vars.SLACK_CHANNEL_ID }}
25+
TESTING_BUILD_ARG2=${{ env.SLACK_CHANNEL_ID_VAR }}
2326
before_command: |
2427
pwd
2528
CUSTOM_TAG="latest-custom"
2629
echo "CUSTOM_TAG=$CUSTOM_TAG" >> "$GITHUB_ENV"
2730
test_command: |
2831
pwd
29-
docker run -it --rm test-templates "cat" "/build_args.txt"
32+
docker run --rm test-templates:test cat /build_args.txt
3033
after_command: |
3134
pwd
3235
# sbom: true

0 commit comments

Comments
 (0)