File tree Expand file tree Collapse file tree 1 file changed +6
-4
lines changed Expand file tree Collapse file tree 1 file changed +6
-4
lines changed Original file line number Diff line number Diff line change 54
54
RELEASE_IMAGE="${{ env.DOCKERHUB_CONTAINER_REGISTRY }}/${{ env.PARENT_IMAGE_NAME }}:${{ github.event.release.tag_name }}-${{ vars.PARENT_IMAGE_TYPE }}"
55
55
BASE_REF="dev"
56
56
PR_TITLE="ci(pi): $RELEASE_IMAGE"
57
+
58
+ git config user.email "devtools@kern.ai"
59
+ git config user.name "GitHub Actions"
57
60
58
61
git checkout "${{ env.HEAD_REF }}" || git checkout -b "${{ env.HEAD_REF }}"
59
62
git push origin "${{ env.HEAD_REF }}" && git pull origin "${{ env.HEAD_REF }}"
64
67
-r "${{ env.DOCKERHUB_CONTAINER_REGISTRY }}" \
65
68
-d "${{ env.DOCKERFILE }}" \
66
69
-h "${{ env.HEAD_REF }}"
70
+ git add ${{ env.DOCKERFILE }}
67
71
68
72
if [ -f "dev.${{ env.DOCKERFILE }}" ]; then
69
73
bash ${{ github.workspace }}/cicd-deployment-scripts/pi/edit_dockerfile.sh \
72
76
-r "${{ env.DOCKERHUB_CONTAINER_REGISTRY }}" \
73
77
-d "dev.${{ env.DOCKERFILE }}" \
74
78
-h "${{ env.HEAD_REF }}"
79
+ git add dev.${{ env.DOCKERFILE }}
75
80
fi
76
81
77
82
if [ -f "gpu.${{ env.DOCKERFILE }}" ]; then
81
86
-r "${{ env.DOCKERHUB_CONTAINER_REGISTRY }}" \
82
87
-d "gpu.${{ env.DOCKERFILE }}" \
83
88
-h "${{ env.HEAD_REF }}"
89
+ git add gpu.${{ env.DOCKERFILE }}
84
90
fi
85
91
86
- git config user.email "devtools@kern.ai"
87
- git config user.name "GitHub Actions"
88
-
89
- git add ${{ env.DOCKERFILE }}
90
92
git commit -m "$PR_TITLE" || true
91
93
git push --force origin "${{ env.HEAD_REF }}"
92
94
echo "::notice::${{ matrix.app }} updated to $RELEASE_IMAGE"
You can’t perform that action at this time.
0 commit comments