Skip to content

Commit

Permalink
build: ➖ disable image validation on PRs
Browse files Browse the repository at this point in the history
Signed-off-by: Eric Nemchik <eric@nemchik.com>
  • Loading branch information
nemchik committed Nov 19, 2023
1 parent 41a9216 commit 2bcf1b8
Showing 1 changed file with 17 additions and 17 deletions.
34 changes: 17 additions & 17 deletions .github/workflows/validate.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,20 +25,20 @@ jobs:
fi
done
validate-images:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4.1.1
- name: Validate Images
run: |
for APPFOLDER in compose/.apps/*; do
APPNAME=$(basename "${APPFOLDER}")
APPDEPRECATED=$(grep --color=never -Po "\scom\.dockstarter\.appinfo\.deprecated: \K.*" "compose/.apps/${APPNAME}/${APPNAME}.labels.yml" | sed -E 's/^([^"].*[^"])$/"\1"/' | xargs || echo false)
if [[ ${APPDEPRECATED} == true ]]; then
continue
fi
APPIMAGE=$(grep --color=never -Po "\simage: \K.*" "compose/.apps/${APPNAME}/${APPNAME}.x86_64.yml" | sed -E 's/([^:]+):[^:]+/\1/' | xargs || echo false)
APPTAG=$(grep --color=never -Po "\scom\.dockstarter\.appvars\.${APPNAME}_tag: \K.*" "compose/.apps/${APPNAME}/${APPNAME}.labels.yml" | sed -E 's/^([^"].*[^"])$/"\1"/' | xargs || echo false)
echo "Image: ${APPIMAGE}:${APPTAG}"
docker run --rm mplatform/mquery "${APPIMAGE}:${APPTAG}"
done
# validate-images:
# runs-on: ubuntu-latest
# steps:
# - uses: actions/checkout@v4.1.1
# - name: Validate Images
# run: |
# for APPFOLDER in compose/.apps/*; do
# APPNAME=$(basename "${APPFOLDER}")
# APPDEPRECATED=$(grep --color=never -Po "\scom\.dockstarter\.appinfo\.deprecated: \K.*" "compose/.apps/${APPNAME}/${APPNAME}.labels.yml" | sed -E 's/^([^"].*[^"])$/"\1"/' | xargs || echo false)
# if [[ ${APPDEPRECATED} == true ]]; then
# continue
# fi
# APPIMAGE=$(grep --color=never -Po "\simage: \K.*" "compose/.apps/${APPNAME}/${APPNAME}.x86_64.yml" | sed -E 's/([^:]+):[^:]+/\1/' | xargs || echo false)
# APPTAG=$(grep --color=never -Po "\scom\.dockstarter\.appvars\.${APPNAME}_tag: \K.*" "compose/.apps/${APPNAME}/${APPNAME}.labels.yml" | sed -E 's/^([^"].*[^"])$/"\1"/' | xargs || echo false)
# echo "Image: ${APPIMAGE}:${APPTAG}"
# docker run --rm mplatform/mquery "${APPIMAGE}:${APPTAG}"
# done

0 comments on commit 2bcf1b8

Please sign in to comment.