Skip to content

Commit

Permalink
Set image tag by ref_name
Browse files Browse the repository at this point in the history
  • Loading branch information
tschbc committed Sep 19, 2024
1 parent 6799ae3 commit 654f2d8
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions .github/workflows/build-and-push-ghcr.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,14 @@ jobs:
- name: Checkout the repository
uses: actions/checkout@v4

- name: Set image tag in values.yaml
uses: fjogeleit/yaml-update-action@v0.15.0
with:
valueFile: 'helm/values.yaml'
propertyPath: 'image.tag'
value: ${{ github.ref_name }}
commitChange: false

- name: Authenticate with OpenShift
uses: redhat-actions/oc-login@v1
with:
Expand Down

0 comments on commit 654f2d8

Please sign in to comment.