Fix image-id input

Signed-off-by: Brett Logan <lindluni@github.com>
This commit is contained in:
Brett Logan 2022-12-23 16:06:03 -05:00
parent 5cec0b4239
commit 4483dae869

View file

@ -14,11 +14,11 @@ jobs:
matrix: matrix:
images: images:
- container-build-target: final_slim - container-build-target: final_slim
container-image-id-prefix: slim- image-id-prefix: slim-
deployment-environment-identifier: Production-SLIM deployment-environment-identifier: Production-SLIM
image-id: slim image-id: slim
- container-build-target: final_standard - container-build-target: final_standard
container-image-id-prefix: "" image-id-prefix: ""
deployment-environment-identifier: Production deployment-environment-identifier: Production
image-id: standard image-id: standard
timeout-minutes: 60 timeout-minutes: 60
@ -39,13 +39,13 @@ jobs:
env: env:
date: ${{ env.BUILD_DATE }} date: ${{ env.BUILD_DATE }}
revision: ${{ github.sha }} revision: ${{ github.sha }}
tag: ${{ matrix.images.container-image-id }} tag: ${{ matrix.images.image-id }}
target: ${{ matrix.images.container-build-target }} target: ${{ matrix.images.container-build-target }}
version: ${{ github.sha }} version: ${{ github.sha }}
- name: Update action.yml - name: Update action.yml
run: yq -i action.yml '.runs.image = "docker://ghcr.io/github/super-linter:${tag}"' run: yq -i action.yml '.runs.image = "docker://ghcr.io/github/super-linter:${tag}"'
env: env:
tag: ${{ matrix.images.container-image-id }} tag: ${{ matrix.images.image-id }}
- name: Lint Codebase - name: Lint Codebase
if: ${{ github.repository == 'github/super-linter' && github.ref != 'refs/heads/main' }} if: ${{ github.repository == 'github/super-linter' && github.ref != 'refs/heads/main' }}
uses: ./ uses: ./
@ -71,7 +71,7 @@ jobs:
-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.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: |
@ -83,4 +83,4 @@ jobs:
-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.image-id }}