Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 10 additions & 2 deletions .github/workflows/build-and-prepare-release-reusable-workflow.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,10 @@ on:
required: false
type: string
default: ''
isPostgres:
required: false
type: boolean
default: false
version-tag:
description: 'Optional image tag to use instead of digest (e.g. 1.2.3). If omitted, the image digest is used.'
required: false
Expand Down Expand Up @@ -156,8 +160,12 @@ jobs:
if: ${{ inputs.ishelm-deployment }}
with:
cmd: |
yq e -i '.image_ref = "${{ inputs.registry }}/${{ github.repository_owner }}/${{ inputs.image-name }}@${{ needs.build_and_push.outputs.image-digest }}"' \
'./${{ inputs.gitops-patch-path }}'
if ["${{ inputs.isPostgres }}" == "true" ]; then
yq e -i '.image_duo_ref = "${{ inputs.registry }}/${{ github.repository_owner }}/${{ inputs.image-name }}@${{ needs.build_and_push.outputs.image-digest }}"' \
'./${{ inputs.gitops-patch-path }}'
else
yq e -i '.image_ref = "${{ inputs.registry }}/${{ github.repository_owner }}/${{ inputs.image-name }}@${{ needs.build_and_push.outputs.image-digest }}"' \
'./${{ inputs.gitops-patch-path }}'

- name: Commit and push changes
run: |
Expand Down
13 changes: 11 additions & 2 deletions .github/workflows/dev-build-reusable-workflow.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,11 @@ on:
required: false
type: string
default: ''
default: false
isPostgres:
required: false
type: boolean
default: false
secrets:
workflow-token:
description: 'PAT with repo+workflow scope for the GitOps repo'
Expand Down Expand Up @@ -127,8 +132,12 @@ jobs:
if: ${{ inputs.ishelm-deployment }}
with:
cmd: |
yq e -i '.image_ref = "${{ inputs.registry }}/${{ github.repository_owner }}/${{ inputs.image-name }}@${{ needs.build_and_push.outputs.image-digest }}"' \
'./${{ inputs.gitops-patch-path }}'
if ["${{ inputs.isPostgres }}" == "true" ]; then
yq e -i '.image_duo_ref = "${{ inputs.registry }}/${{ github.repository_owner }}/${{ inputs.image-name }}@${{ needs.build_and_push.outputs.image-digest }}"' \
'./${{ inputs.gitops-patch-path }}'
else
yq e -i '.image_ref = "${{ inputs.registry }}/${{ github.repository_owner }}/${{ inputs.image-name }}@${{ needs.build_and_push.outputs.image-digest }}"' \
'./${{ inputs.gitops-patch-path }}'

- name: Commit and push changes
run: |
Expand Down