From 5cec0b42395a8cb7e9765cb9985e779114a53a06 Mon Sep 17 00:00:00 2001 From: Brett Logan Date: Fri, 23 Dec 2022 16:03:51 -0500 Subject: [PATCH] Fix build args Signed-off-by: Brett Logan --- .github/workflows/build.yml | 36 ++++++++++++++++++------------------ 1 file changed, 18 insertions(+), 18 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index af408c8d..19f6b26f 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -31,11 +31,11 @@ jobs: run: echo "BUILD_DATE=$(date -u +'%Y-%m-%dT%H:%M:%SZ')" >> "${GITHUB_ENV}" - name: Build Docker images run: | - docker build --build-arg "${date}" \ - --build-arg "${revision}" \ - --build-arg "${version}" \ - --target "${target}" \ - --tag "ghcr.io/github/super-linter:${tag}" . + docker build --build-arg "BUILD_DATE=${date}" \ + --build-arg "BUILD_DATE=${revision}" \ + --build-arg "BUILD_VERSION=${version}" \ + --target "${target}" \ + --tag "ghcr.io/github/super-linter:${tag}" . env: date: ${{ env.BUILD_DATE }} revision: ${{ github.sha }} @@ -63,24 +63,24 @@ jobs: if: ${{ github.repository == 'github/super-linter' && github.ref != 'refs/heads/main' }} run: | docker run \ - -e RUN_LOCAL=true \ - -e TEST_CASE_RUN=true \ - -e ANSIBLE_DIRECTORY=.automation/test/ansible \ - -e ACTIONS_RUNNER_DEBUG=true \ - -e ERROR_ON_MISSING_EXEC_BIT=true \ - -v "${GITHUB_WORKSPACE}:/tmp/lint" \ - "ghcr.io/github/super-linter:${tag}" + -e RUN_LOCAL=true \ + -e TEST_CASE_RUN=true \ + -e ANSIBLE_DIRECTORY=.automation/test/ansible \ + -e ACTIONS_RUNNER_DEBUG=true \ + -e ERROR_ON_MISSING_EXEC_BIT=true \ + -v "${GITHUB_WORKSPACE}:/tmp/lint" \ + "ghcr.io/github/super-linter:${tag}" env: tag: ${{ matrix.images.container-image-id }} - name: Run All Codebase Super-Linter Tests if: ${{ github.repository == 'github/super-linter' && github.ref != 'refs/heads/main' }} run: | docker run \git - -e RUN_LOCAL=true \ - -e OUTPUT_DETAILS=detailed \ - -e ACTIONS_RUNNER_DEBUG=true \ - -e ERROR_ON_MISSING_EXEC_BIT=true \ - -v "${GITHUB_WORKSPACE}:/tmp/lint" \ - "ghcr.io/github/super-linter:${tag}" + -e RUN_LOCAL=true \ + -e OUTPUT_DETAILS=detailed \ + -e ACTIONS_RUNNER_DEBUG=true \ + -e ERROR_ON_MISSING_EXEC_BIT=true \ + -v "${GITHUB_WORKSPACE}:/tmp/lint" \ + "ghcr.io/github/super-linter:${tag}" env: tag: ${{ matrix.images.container-image-id }}