2121 parent_image_type : ${{ vars.PARENT_IMAGE_TYPE }}
2222
2323 pi-edit :
24- name : ' Parent Images: Dockerfile ' # suffix populated by matrix
24+ name : ' Parent Images: Dockerfile' # suffix populated by matrix
2525 runs-on : ubuntu-latest
2626 needs : [pi-matrix]
2727 environment : dev
@@ -55,27 +55,36 @@ jobs:
5555 -r ${{ env.DOCKERHUB_CONTAINER_REGISTRY }} \
5656 -d ${{ env.DOCKERFILE }}
5757
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 }}"
5959 BASE_REF="dev"
6060 HEAD_REF="parent-images"
6161 PR_TITLE="ci(pi): update to $LATEST_IMAGE_TAG"
6262
6363 git config user.email "[email protected] " 6464 git config user.name "GitHub Actions"
6565
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"
6868
6969 git add ${{ env.DOCKERFILE }}
7070 git commit -m "$PR_TITLE" || true
71- git push origin parent-images
71+ git push origin "$HEAD_REF"
7272 echo "::notice::${{ matrix.app }} updated to $LATEST_IMAGE_TAG"
7373
7474 bash cicd-deployment-scripts/pi/pr_create.sh \
7575 -b "$BASE_REF" \
7676 -h "$HEAD_REF" \
7777 -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