Skip to content

Commit

Permalink
ci: simplify merge tag (#2209)
Browse files Browse the repository at this point in the history
  • Loading branch information
DerekRoberts authored Dec 12, 2024
1 parent 7f01244 commit 8b9c1c1
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 9 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/.deployer-db.yml
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ jobs:
deploy_db:
runs-on: ubuntu-24.04
if: ${{ inputs.enabled }}
name: Helm (Crunchy)
name: Crunchy (db)
environment: ${{ inputs.environment }}
steps:
# Check triggers (omitted or matched) for deployment
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/.deployer.yml
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ jobs:
triggers: ${{ inputs.triggers }}

deployer:
name: Helm (stack)
name: Stack
needs: deployer-db
environment: ${{ inputs.environment }}
runs-on: ubuntu-24.04
Expand Down
10 changes: 3 additions & 7 deletions .github/workflows/merge.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ on:
workflow_dispatch:
inputs:
tag:
description: "Tag set to deploy; e.g. PR number, latest or prod (default)"
description: "Image tag set to deploy; e.g. PR number or prod"
type: string
default: 'prod'

Expand All @@ -36,16 +36,12 @@ jobs:

- name: Set Tag
id: tag
run: |
if [ -z "${{ inputs.pr_no }}" ]; then
echo "tag=${{ steps.pr.outputs.pr }}" >> $GITHUB_OUTPUT
else
echo "tag=${{ inputs.tag }}" >> $GITHUB_OUTPUT
fi
run: echo "tag=${{ inputs.tag || steps.pr.outputs.pr }}" >> $GITHUB_OUTPUT

# https://github.com/bcgov/quickstart-openshift-helpers
deploy-test:
name: Deploy (test, tag=${{ needs.vars.outputs.tag }})
needs: [vars]
uses: ./.github/workflows/.deployer.yml
secrets:
oc_namespace: ${{ secrets.OC_NAMESPACE }}
Expand Down

0 comments on commit 8b9c1c1

Please sign in to comment.