File tree Expand file tree Collapse file tree 1 file changed +8
-1
lines changed
Expand file tree Collapse file tree 1 file changed +8
-1
lines changed Original file line number Diff line number Diff line change 3939 echo "$CHANGED"
4040
4141 declare -A MAP=(
42- ["hmi"]="hmi/"
4342 ["plc"]="plc/"
4443 ["router"]="router/"
4544 ["workstation"]="workstation/"
9291 SERVICES=$(echo '${{ needs.detect-changes.outputs.services }}' | jq -r '.[]')
9392 set -euo pipefail
9493 for SERVICE in $SERVICES; do
94+ if [ ! -d "./${SERVICE}" ]; then
95+ echo "⚠️ Skipping ${SERVICE}: directory does not exist"
96+ continue
97+ fi
9598 IMAGE="${{ secrets.DOCKERHUB_USERNAME }}/grfics-${SERVICE}"
9699 echo "🚀 Building ${IMAGE}:${DOCKER_TAG} (amd64)"
97100 docker buildx build \
@@ -129,6 +132,10 @@ jobs:
129132 SERVICES=$(echo '${{ needs.detect-changes.outputs.services }}' | jq -r '.[]')
130133 set -euo pipefail
131134 for SERVICE in $SERVICES; do
135+ if [ ! -d "./${SERVICE}" ]; then
136+ echo "⚠️ Skipping ${SERVICE}: directory does not exist"
137+ continue
138+ fi
132139 IMAGE="${{ secrets.DOCKERHUB_USERNAME }}/grfics-${SERVICE}"
133140 echo "🚀 Building ${IMAGE}:${DOCKER_TAG} (arm64)"
134141 docker buildx build \
You can’t perform that action at this time.
0 commit comments