Skip to content

Commit 1180467

Browse files
committed
Update workflow
1 parent ede4d3a commit 1180467

File tree

1 file changed

+2
-14
lines changed

1 file changed

+2
-14
lines changed

.github/workflows/docker-build-push.yml

Lines changed: 2 additions & 14 deletions
Original file line numberDiff line numberDiff 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 }}

0 commit comments

Comments
 (0)