Skip to content

Commit ec15a5b

Browse files
committed
fix: missing dockerfiles
1 parent 01e5a44 commit ec15a5b

File tree

1 file changed

+9
-6
lines changed

1 file changed

+9
-6
lines changed

.github/workflows/pi_build.yml

Lines changed: 9 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -180,11 +180,13 @@ jobs:
180180
-r "${{ env.DOCKERHUB_CONTAINER_REGISTRY }}" \
181181
-d "${{ env.DOCKERFILE }}"
182182
183-
bash ${{ github.workspace }}/cicd-deployment-scripts/pi/edit_dockerfile.sh \
184-
-i "${{ env.PARENT_IMAGE_NAME }}" \
185-
-l "${{ env.HEAD_REF }}" \
186-
-r "${{ env.DOCKERHUB_CONTAINER_REGISTRY }}" \
187-
-d "dev.${{ env.DOCKERFILE }}"
183+
if [ -f "dev.${{ env.DOCKERFILE }}" ]; then
184+
bash ${{ github.workspace }}/cicd-deployment-scripts/pi/edit_dockerfile.sh \
185+
-i "${{ env.PARENT_IMAGE_NAME }}" \
186+
-l "${{ env.HEAD_REF }}" \
187+
-r "${{ env.DOCKERHUB_CONTAINER_REGISTRY }}" \
188+
-d "dev.${{ env.DOCKERFILE }}"
189+
fi
188190
189191
if [ -f "gpu.${{ env.DOCKERFILE }}" ]; then
190192
bash ${{ github.workspace }}/cicd-deployment-scripts/pi/edit_dockerfile.sh \
@@ -194,7 +196,8 @@ jobs:
194196
-d "gpu.${{ env.DOCKERFILE }}"
195197
fi
196198
197-
git add requirements/*.txt ${{ env.DOCKERFILE }} dev.${{ env.DOCKERFILE }}
199+
git add requirements/*.txt ${{ env.DOCKERFILE }}
200+
if [ -f "dev.${{ env.DOCKERFILE }}" ]; then git add dev.${{ env.DOCKERFILE }}; fi
198201
if [ -f "gpu.${{ env.DOCKERFILE }}" ]; then git add gpu.${{ env.DOCKERFILE }}; fi
199202
git commit -m "ci: update requirements and Dockerfile" || true
200203
echo "::notice::${{ matrix.app }} - updated requirement files and ${{ env.DOCKERFILE }}s"

0 commit comments

Comments
 (0)