mirror of
https://github.com/super-linter/super-linter.git
synced 2024-11-25 15:41:02 -05:00
Fix build args
Signed-off-by: Brett Logan <lindluni@github.com>
This commit is contained in:
parent
489b843118
commit
5cec0b4239
1 changed files with 18 additions and 18 deletions
36
.github/workflows/build.yml
vendored
36
.github/workflows/build.yml
vendored
|
@ -31,11 +31,11 @@ jobs:
|
||||||
run: echo "BUILD_DATE=$(date -u +'%Y-%m-%dT%H:%M:%SZ')" >> "${GITHUB_ENV}"
|
run: echo "BUILD_DATE=$(date -u +'%Y-%m-%dT%H:%M:%SZ')" >> "${GITHUB_ENV}"
|
||||||
- name: Build Docker images
|
- name: Build Docker images
|
||||||
run: |
|
run: |
|
||||||
docker build --build-arg "${date}" \
|
docker build --build-arg "BUILD_DATE=${date}" \
|
||||||
--build-arg "${revision}" \
|
--build-arg "BUILD_DATE=${revision}" \
|
||||||
--build-arg "${version}" \
|
--build-arg "BUILD_VERSION=${version}" \
|
||||||
--target "${target}" \
|
--target "${target}" \
|
||||||
--tag "ghcr.io/github/super-linter:${tag}" .
|
--tag "ghcr.io/github/super-linter:${tag}" .
|
||||||
env:
|
env:
|
||||||
date: ${{ env.BUILD_DATE }}
|
date: ${{ env.BUILD_DATE }}
|
||||||
revision: ${{ github.sha }}
|
revision: ${{ github.sha }}
|
||||||
|
@ -63,24 +63,24 @@ jobs:
|
||||||
if: ${{ github.repository == 'github/super-linter' && github.ref != 'refs/heads/main' }}
|
if: ${{ github.repository == 'github/super-linter' && github.ref != 'refs/heads/main' }}
|
||||||
run: |
|
run: |
|
||||||
docker run \
|
docker run \
|
||||||
-e RUN_LOCAL=true \
|
-e RUN_LOCAL=true \
|
||||||
-e TEST_CASE_RUN=true \
|
-e TEST_CASE_RUN=true \
|
||||||
-e ANSIBLE_DIRECTORY=.automation/test/ansible \
|
-e ANSIBLE_DIRECTORY=.automation/test/ansible \
|
||||||
-e ACTIONS_RUNNER_DEBUG=true \
|
-e ACTIONS_RUNNER_DEBUG=true \
|
||||||
-e ERROR_ON_MISSING_EXEC_BIT=true \
|
-e ERROR_ON_MISSING_EXEC_BIT=true \
|
||||||
-v "${GITHUB_WORKSPACE}:/tmp/lint" \
|
-v "${GITHUB_WORKSPACE}:/tmp/lint" \
|
||||||
"ghcr.io/github/super-linter:${tag}"
|
"ghcr.io/github/super-linter:${tag}"
|
||||||
env:
|
env:
|
||||||
tag: ${{ matrix.images.container-image-id }}
|
tag: ${{ matrix.images.container-image-id }}
|
||||||
- name: Run All Codebase Super-Linter Tests
|
- name: Run All Codebase Super-Linter Tests
|
||||||
if: ${{ github.repository == 'github/super-linter' && github.ref != 'refs/heads/main' }}
|
if: ${{ github.repository == 'github/super-linter' && github.ref != 'refs/heads/main' }}
|
||||||
run: |
|
run: |
|
||||||
docker run \git
|
docker run \git
|
||||||
-e RUN_LOCAL=true \
|
-e RUN_LOCAL=true \
|
||||||
-e OUTPUT_DETAILS=detailed \
|
-e OUTPUT_DETAILS=detailed \
|
||||||
-e ACTIONS_RUNNER_DEBUG=true \
|
-e ACTIONS_RUNNER_DEBUG=true \
|
||||||
-e ERROR_ON_MISSING_EXEC_BIT=true \
|
-e ERROR_ON_MISSING_EXEC_BIT=true \
|
||||||
-v "${GITHUB_WORKSPACE}:/tmp/lint" \
|
-v "${GITHUB_WORKSPACE}:/tmp/lint" \
|
||||||
"ghcr.io/github/super-linter:${tag}"
|
"ghcr.io/github/super-linter:${tag}"
|
||||||
env:
|
env:
|
||||||
tag: ${{ matrix.images.container-image-id }}
|
tag: ${{ matrix.images.container-image-id }}
|
||||||
|
|
Loading…
Reference in a new issue