From 8e909a5105a82311a454473140221d275d1a00c7 Mon Sep 17 00:00:00 2001 From: Young Date: Fri, 27 Dec 2024 12:05:45 -0700 Subject: [PATCH] Fixes formatting for GA (#1160) * fixed typo * fixed line --- .github/workflows/test-PR-dockerfiles.yml | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/.github/workflows/test-PR-dockerfiles.yml b/.github/workflows/test-PR-dockerfiles.yml index fc6b6ae94..7d9547440 100644 --- a/.github/workflows/test-PR-dockerfiles.yml +++ b/.github/workflows/test-PR-dockerfiles.yml @@ -1,5 +1,5 @@ ##### --------------------------------------------------------------------------- ##### -##### This workflow looks for new dockefiles and builds them to the test target. ##### +##### This workflow looks for new dockerfiles and builds them to the test target. ##### ##### This in intended to start on a pull request (PR) ##### ##### Ana06 is being used instead of jitterbit because of the filter option ##### ##### --------------------------------------------------------------------------- ##### @@ -63,7 +63,8 @@ jobs: #checking layers warning='' app_layer=$(grep FROM ./build-files/${{ steps.parse.outputs.tool }}/${{ steps.parse.outputs.version }}/Dockerfile | grep -E "as app|AS app") - tst_layer=$(grep FROM ./build-files/${{ steps.parse.outputs.tool }}/${{ steps.parse.outputs.version }}/Dockerfile | grep -E "as test|AS test") if [ -z "$app_layer" ] ; then echo "FATAL : app layer is missing" ; warning='warning' ; fi + tst_layer=$(grep FROM ./build-files/${{ steps.parse.outputs.tool }}/${{ steps.parse.outputs.version }}/Dockerfile | grep -E "as test|AS test") + if [ -z "$app_layer" ] ; then echo "FATAL : app layer is missing" ; warning='warning' ; fi if [ -z "$tst_layer" ] ; then echo "FATAL : test layer is missing" ; warning='warning' ; fi if [ -n "$warning" ] ; then echo "Please see template for recommended format https://github.com/StaPH-B/docker-builds/blob/master/dockerfile-template/Dockerfile" ; exit 1 ; fi