File tree Expand file tree Collapse file tree 1 file changed +2
-14
lines changed Expand file tree Collapse file tree 1 file changed +2
-14
lines changed Original file line number Diff line number Diff line change @@ -32,23 +32,11 @@ jobs:
3232
3333 - name : Build Docker Image
3434 run : docker build . -t fleet-telemetry-consumer:${{ env.image_tag }}
35-
35+
3636 - name : Tag Docker Image (only if pushing)
3737 if : startsWith(github.ref, 'refs/tags/')
3838 run : docker tag fleet-telemetry-consumer:${{ env.image_tag }} quay.io/rajsinghcpre/fleet-telemetry-consumer:${{ env.image_tag }}
3939
4040 - name : Push Docker Image (only if pushing)
4141 if : startsWith(github.ref, 'refs/tags/')
42- run : docker push quay.io/rajsinghcpre/fleet-telemetry-consumer:${{ env.image_tag }}
43-
44- - name : Update Deployment Image Tag (only if pushing)
45- if : startsWith(github.ref, 'refs/tags/')
46- run : |
47- sed -i "s|quay.io/rajsinghcpre/fleet-telemetry-consumer:.*|quay.io/rajsinghcpre/fleet-telemetry-consumer:${{ env.image_tag }}|" kustomization/fleet-telemetry-consumer/deployment.yaml
48-
49- - name : Commit and Push Changes (only if pushing)
50- if : startsWith(github.ref, 'refs/tags/')
51- uses : stefanzweifel/git-auto-commit-action@v4
52- with :
53- commit_message : " Update image tag to ${{ env.image_tag }}"
54- file_pattern : kustomization/fleet-telemetry-consumer/deployment.yaml
42+ run : docker push quay.io/rajsinghcpre/fleet-telemetry-consumer:${{ env.image_tag }}
You can’t perform that action at this time.
0 commit comments