Skip to content

Commit dcdec12

Browse files
committed
perf: update all dockerfiles on pi release
1 parent 3a55fd0 commit dcdec12

File tree

3 files changed

+20
-2
lines changed

3 files changed

+20
-2
lines changed

.github/workflows/pi_merge_parent_image.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -245,4 +245,4 @@ jobs:
245245

246246
- name: Delete Branch
247247
shell: bash
248-
run: git push origin --delete ${{ github.event.pull_request.head.ref }}
248+
run: git push origin --delete ${{ github.event.pull_request.head.ref }} || true

.github/workflows/pi_merge_submodule.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,7 @@ jobs:
9797
gh-delete-submodule-branches:
9898
name: 'GitHub: Delete Submodule Branch'
9999
needs: [call-dc-registry-delete]
100-
if: ${{ !failure() }}
100+
if: ${{ !failure() && github.run_attempt == 1 }}
101101
runs-on: ubuntu-latest
102102
steps:
103103
- name: Checkout repository

.github/workflows/pi_release.yml

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -65,6 +65,24 @@ jobs:
6565
-d "${{ env.DOCKERFILE }}" \
6666
-h "${{ env.HEAD_REF }}"
6767
68+
if [ -f "dev.${{ env.DOCKERFILE }}" ]; then
69+
bash ${{ github.workspace }}/cicd-deployment-scripts/pi/edit_dockerfile.sh \
70+
-i "${{ env.PARENT_IMAGE_NAME }}" \
71+
-l "${{ env.HEAD_REF }}" \
72+
-r "${{ env.DOCKERHUB_CONTAINER_REGISTRY }}" \
73+
-d "dev.${{ env.DOCKERFILE }}" \
74+
-h "${{ env.HEAD_REF }}"
75+
fi
76+
77+
if [ -f "gpu.${{ env.DOCKERFILE }}" ]; then
78+
bash ${{ github.workspace }}/cicd-deployment-scripts/pi/edit_dockerfile.sh \
79+
-i "${{ env.PARENT_IMAGE_NAME }}" \
80+
-l "${{ env.HEAD_REF }}" \
81+
-r "${{ env.DOCKERHUB_CONTAINER_REGISTRY }}" \
82+
-d "gpu.${{ env.DOCKERFILE }}" \
83+
-h "${{ env.HEAD_REF }}"
84+
fi
85+
6886
git config user.email "devtools@kern.ai"
6987
git config user.name "GitHub Actions"
7088

0 commit comments

Comments
 (0)