Skip to content

Commit 8b9c1c1

Browse files
authored
ci: simplify merge tag (#2209)
1 parent 7f01244 commit 8b9c1c1

File tree

3 files changed

+5
-9
lines changed

3 files changed

+5
-9
lines changed

.github/workflows/.deployer-db.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ jobs:
5959
deploy_db:
6060
runs-on: ubuntu-24.04
6161
if: ${{ inputs.enabled }}
62-
name: Helm (Crunchy)
62+
name: Crunchy (db)
6363
environment: ${{ inputs.environment }}
6464
steps:
6565
# Check triggers (omitted or matched) for deployment

.github/workflows/.deployer.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@ jobs:
8181
triggers: ${{ inputs.triggers }}
8282

8383
deployer:
84-
name: Helm (stack)
84+
name: Stack
8585
needs: deployer-db
8686
environment: ${{ inputs.environment }}
8787
runs-on: ubuntu-24.04

.github/workflows/merge.yml

+3-7
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ on:
1111
workflow_dispatch:
1212
inputs:
1313
tag:
14-
description: "Tag set to deploy; e.g. PR number, latest or prod (default)"
14+
description: "Image tag set to deploy; e.g. PR number or prod"
1515
type: string
1616
default: 'prod'
1717

@@ -36,16 +36,12 @@ jobs:
3636

3737
- name: Set Tag
3838
id: tag
39-
run: |
40-
if [ -z "${{ inputs.pr_no }}" ]; then
41-
echo "tag=${{ steps.pr.outputs.pr }}" >> $GITHUB_OUTPUT
42-
else
43-
echo "tag=${{ inputs.tag }}" >> $GITHUB_OUTPUT
44-
fi
39+
run: echo "tag=${{ inputs.tag || steps.pr.outputs.pr }}" >> $GITHUB_OUTPUT
4540

4641
# https://github.com/bcgov/quickstart-openshift-helpers
4742
deploy-test:
4843
name: Deploy (test, tag=${{ needs.vars.outputs.tag }})
44+
needs: [vars]
4945
uses: ./.github/workflows/.deployer.yml
5046
secrets:
5147
oc_namespace: ${{ secrets.OC_NAMESPACE }}

0 commit comments

Comments
 (0)