Skip to content

Commit

Permalink
Fixes formatting for GA (#1160)
Browse files Browse the repository at this point in the history
* fixed typo

* fixed line
  • Loading branch information
erinyoung authored Dec 27, 2024
1 parent eecb15f commit 8e909a5
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions .github/workflows/test-PR-dockerfiles.yml
Original file line number Diff line number Diff line change
@@ -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 #####
##### --------------------------------------------------------------------------- #####
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit 8e909a5

Please sign in to comment.