Update maven-publish.yml

This commit is contained in:
Yevhenii Pokhvalii 2021-03-12 18:34:15 +02:00 committed by GitHub
parent 55dcd6fe76
commit 2894229f08
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -57,6 +57,8 @@ jobs:
- name: Docker Push - name: Docker Push
run: | run: |
docker push gcr.io/${{ secrets.GCP_PROJECT_ID }}/helloworld:$GITHUB_SHA 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 - name: Repository Dispatch
uses: peter-evans/repository-dispatch@v1 uses: peter-evans/repository-dispatch@v1
@ -64,7 +66,7 @@ jobs:
token: ${{ secrets.REPO_ACCESS_TOKEN }} token: ${{ secrets.REPO_ACCESS_TOKEN }}
repository: YevheniiPokhvalii/spring-petclinic-gitops-test repository: YevheniiPokhvalii/spring-petclinic-gitops-test
event-type: kubernetes-event 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 # - name: Docker Deploy
# run: | # run: |