From 6aa8e6582597ec7e4d5aa09fa29ed27f8169200e Mon Sep 17 00:00:00 2001 From: Yevhenii Pokhvalii <68227075+YevheniiPokhvalii@users.noreply.github.com> Date: Fri, 12 Mar 2021 19:17:03 +0200 Subject: [PATCH] Update maven-publish.yml --- .github/workflows/maven-publish.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/maven-publish.yml b/.github/workflows/maven-publish.yml index ef0056a1f..844aabf83 100644 --- a/.github/workflows/maven-publish.yml +++ b/.github/workflows/maven-publish.yml @@ -57,8 +57,6 @@ 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 @@ -67,6 +65,8 @@ jobs: repository: YevheniiPokhvalii/spring-petclinic-gitops-test event-type: kubernetes-event client-payload: '{"ref": "${{ github.ref }}", "image_id": "$IMAGE_ID"}' + env: + IMAGE_ID: gcr.io/${{ secrets.GCP_PROJECT_ID }}/helloworld:$GITHUB_SHA # - name: Docker Deploy # run: |