Skip to content

Commit 7f5adb5

Browse files
committed
fix default tag-prefix
1 parent 683705c commit 7f5adb5

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

.github/workflows/ci-build.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,7 @@ jobs:
9797
push: ${{ inputs.push || (github.ref_protected && github.event_name != 'pull_request') }}
9898
image: ${{ matrix.image }}
9999
platforms: ${{ inputs.platforms || 'linux/amd64' }}
100-
tag-prefix: ${{ inputs.tag-prefix }}
100+
tag-prefix: ${{ inputs.tag-prefix || 'rn' }}
101101

102102
promote-image:
103103
name: Promote Image (${{ matrix.image }})
@@ -127,7 +127,7 @@ jobs:
127127
uses: ./.github/actions/promote-image
128128
with:
129129
image: ${{ env.REGISTRY }}/${{ github.repository_owner }}/${{ matrix.image }}
130-
run-tag: ${{ inputs.tag-prefix }}-${{ github.run_number }}-a${{ github.run_attempt }}
130+
run-tag: ${{ inputs.tag-prefix || 'rn' }}-${{ github.run_number }}-a${{ github.run_attempt }}
131131
latest: ${{ inputs.latest || false }}
132132

133133
deploy-prod-workflow:
@@ -144,7 +144,7 @@ jobs:
144144
event-type: update-backend-prod
145145
client-payload: |
146146
{
147-
"tag": "${{ inputs.tag-prefix }}-${{ github.run_number }}-a${{ github.run_attempt }}"
147+
"tag": "${{ inputs.tag-prefix || 'rn' }}-${{ github.run_number }}-a${{ github.run_attempt }}"
148148
}
149149
150150
deploy-staging:
@@ -162,7 +162,7 @@ jobs:
162162
event-type: update-backend-staging
163163
client-payload: |
164164
{
165-
"tag": "${{ inputs.tag-prefix }}-${{ github.run_number }}-a${{ github.run_attempt }}"
165+
"tag": "${{ inputs.tag-prefix || 'rn' }}-${{ github.run_number }}-a${{ github.run_attempt }}"
166166
}
167167
168168
deploy-dev:

0 commit comments

Comments
 (0)