From 2894229f0893dbbca6899fda57069da022e771ae Mon Sep 17 00:00:00 2001 From: Yevhenii Pokhvalii <68227075+YevheniiPokhvalii@users.noreply.github.com> Date: Fri, 12 Mar 2021 18:34:15 +0200 Subject: [PATCH] Update maven-publish.yml --- .github/workflows/maven-publish.yml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/.github/workflows/maven-publish.yml b/.github/workflows/maven-publish.yml index f5319dc30..ef0056a1f 100644 --- a/.github/workflows/maven-publish.yml +++ b/.github/workflows/maven-publish.yml @@ -57,6 +57,8 @@ jobs: - name: Docker Push run: | docker push gcr.io/${{ secrets.GCP_PROJECT_ID }}/helloworld:$GITHUB_SHA + env: + IMAGE_ID: gcr.io/${{ secrets.GCP_PROJECT_ID }}/helloworld:$GITHUB_SHA - name: Repository Dispatch uses: peter-evans/repository-dispatch@v1 @@ -64,7 +66,7 @@ jobs: token: ${{ secrets.REPO_ACCESS_TOKEN }} repository: YevheniiPokhvalii/spring-petclinic-gitops-test event-type: kubernetes-event - client-payload: '{"ref": "${{ github.ref }}", "image_id": "${{ "gcr.io/${{ secrets.GCP_PROJECT_ID }}/helloworld:$GITHUB_SHA" }}"}' + client-payload: '{"ref": "${{ github.ref }}", "image_id": "$IMAGE_ID"}' # - name: Docker Deploy # run: |