Skip to content
This repository was archived by the owner on Jul 9, 2025. It is now read-only.

Commit fc2cd2f

Browse files
committed
fix haproxy gitref injection for docker tags
1 parent d838cd5 commit fc2cd2f

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

.github/workflows/pipeline.yml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -118,10 +118,11 @@ jobs:
118118
images: "${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}"
119119
tags: |
120120
type=raw,event=push,enable=true,value=branch-{{ branch }}-${{ env.HAPROXY_VERSION }}-${{ inputs.OS_FAMILY }}
121-
type=sha,event=push,enable=true,prefix=branch-{{ branch }}-${{ env.HAPROXY_VERSION }}-${{ inputs.OS_FAMILY }}-hap-${{ steps.buildvars.haproxy_gitref }}-mdx-,format=short
121+
type=sha,event=push,enable=true,prefix=branch-{{ branch }}-${{ env.HAPROXY_VERSION }}-${{ inputs.OS_FAMILY }}-hap-${{ env.HAPROXY_GITREF }}-mdx-,format=short
122122
type=raw,event=push,enable={{ is_default_branch }},value=${{ env.HAPROXY_VERSION }}-${{ inputs.OS_FAMILY }}
123-
type=sha,event=push,enable={{ is_default_branch }},prefix=${{ env.HAPROXY_VERSION }}-${{ inputs.OS_FAMILY }}-hap-${{ steps.buildvars.haproxy_gitref }}-mdx-,format=short
123+
type=sha,event=push,enable={{ is_default_branch }},prefix=${{ env.HAPROXY_VERSION }}-${{ inputs.OS_FAMILY }}-hap-${{ env.HAPROXY_GITREF }}-mdx-,format=short
124124
env:
125+
HAPROXY_GITREF: "${{ fromJSON(needs.buildvars.outputs.cijson)[matrix.BUILD_FLAVOUR]['git_ref'] }}"
125126
HAPROXY_VERSION: "${{ fromJSON(needs.buildvars.outputs.cijson)[matrix.BUILD_FLAVOUR]['version'] }}"
126127
- name: "Fetch package"
127128
uses: "actions/download-artifact@v4"

0 commit comments

Comments
 (0)