21
21
parent_image_type : ${{ vars.PARENT_IMAGE_TYPE }}
22
22
23
23
pi-edit :
24
- name : ' Parent Images: Dockerfile ' # suffix populated by matrix
24
+ name : ' Parent Images: Dockerfile' # suffix populated by matrix
25
25
runs-on : ubuntu-latest
26
26
needs : [pi-matrix]
27
27
environment : dev
@@ -55,27 +55,36 @@ jobs:
55
55
-r ${{ env.DOCKERHUB_CONTAINER_REGISTRY }} \
56
56
-d ${{ env.DOCKERFILE }}
57
57
58
- LATEST_IMAGE_TAG="${{ env.DOCKERHUB_CONTAINER_REGISTRY }}/${{ matrix.parent_image_type }}:${{ github.event.release.tag_name }}"
58
+ LATEST_IMAGE_TAG="${{ env.DOCKERHUB_CONTAINER_REGISTRY }}/${{ env.PARENT_IMAGE_NAME }}:${{ github.event.release.tag_name }}-${{ matrix.parent_image_type }}"
59
59
BASE_REF="dev"
60
60
HEAD_REF="parent-images"
61
61
PR_TITLE="ci(pi): update to $LATEST_IMAGE_TAG"
62
62
63
63
git config user.email "[email protected] "
64
64
git config user.name "GitHub Actions"
65
65
66
- git checkout -b parent-images || git checkout parent-images
67
- git push origin parent-images && git pull origin parent-images
66
+ git checkout -b "$HEAD_REF" || git checkout "$HEAD_REF"
67
+ git push origin "$HEAD_REF" && git pull origin "$HEAD_REF"
68
68
69
69
git add ${{ env.DOCKERFILE }}
70
70
git commit -m "$PR_TITLE" || true
71
- git push origin parent-images
71
+ git push origin "$HEAD_REF"
72
72
echo "::notice::${{ matrix.app }} updated to $LATEST_IMAGE_TAG"
73
73
74
74
bash cicd-deployment-scripts/pi/pr_create.sh \
75
75
-b "$BASE_REF" \
76
76
-h "$HEAD_REF" \
77
77
-t "ci(pi): update to $LATEST_IMAGE_TAG" \
78
- -o ${{ github.repository_owner }} \}}
79
- -r ${{ github.event.repository.name }} \}}
80
- -n ${{ github.event.release.tag_name }} \}}
81
- -a ${{ matrix.app }}
78
+ -o ${{ github.repository_owner }} \
79
+ -r ${{ github.event.repository.name }} \
80
+ -n ${{ github.event.release.tag_name }} \
81
+ -a ${{ matrix.app }}
82
+
83
+ call-gh-release :
84
+ # needs: [call-k8-deploy]
85
+ needs : [pi-edit]
86
+ if : always() && github.event_name == 'release'
87
+ uses : code-kern-ai/cicd-deployment-scripts/.github/workflows/gh_release.yml@dev
88
+ secrets : inherit
89
+ with :
90
+ deployment_status : " success"
0 commit comments