mirror of
https://github.com/super-linter/super-linter.git
synced 2024-12-23 07:42:13 -05:00
Fix action.yml update
Signed-off-by: Brett Logan <lindluni@github.com>
This commit is contained in:
parent
4483dae869
commit
afcf97b858
1 changed files with 5 additions and 5 deletions
10
.github/workflows/build.yml
vendored
10
.github/workflows/build.yml
vendored
|
@ -27,9 +27,13 @@ jobs:
|
||||||
uses: actions/checkout@v3
|
uses: actions/checkout@v3
|
||||||
with:
|
with:
|
||||||
fetch-depth: 0
|
fetch-depth: 0
|
||||||
|
- name: Update action.yml
|
||||||
|
run: yq '.runs.image = "docker://ghcr.io/github/super-linter:${tag}"' -i action.yml
|
||||||
|
env:
|
||||||
|
tag: ${{ matrix.images.image-id }}
|
||||||
- name: Retrieve Datetime
|
- name: Retrieve Datetime
|
||||||
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 Image
|
||||||
run: |
|
run: |
|
||||||
docker build --build-arg "BUILD_DATE=${date}" \
|
docker build --build-arg "BUILD_DATE=${date}" \
|
||||||
--build-arg "BUILD_DATE=${revision}" \
|
--build-arg "BUILD_DATE=${revision}" \
|
||||||
|
@ -42,10 +46,6 @@ jobs:
|
||||||
tag: ${{ matrix.images.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
|
|
||||||
run: yq -i action.yml '.runs.image = "docker://ghcr.io/github/super-linter:${tag}"'
|
|
||||||
env:
|
|
||||||
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: ./
|
||||||
|
|
Loading…
Reference in a new issue