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
205 changes: 0 additions & 205 deletions .github/workflows/.deployer-db.yml

This file was deleted.

60 changes: 47 additions & 13 deletions .github/workflows/.deployer.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,11 +12,6 @@ on:
default: 'true'
required: false
type: string
crunchy:
description: Install Crunchy?
default: 'false'
required: false
type: string
directory:
description: Chart directory
default: 'charts/app'
Expand Down Expand Up @@ -54,6 +49,28 @@ on:
description: Paths used to trigger a deployment; e.g. ('./backend/' './frontend/)
required: false
type: string

### Crunchy
crunchy_values_file:
description: 'Path to the values.yml file to use for the deployment'
required: false
type: string
s3_access_key:
description: 'S3 access key'
required: false
type: string
s3_secret_key:
description: 'S3 secret key'
required: false
type: string
s3_bucket:
description: 'S3 bucket'
required: false
type: string
s3_endpoint:
description: 'S3 endpoint'
required: false
type: string

### Usually a bad idea / not recommended
repository:
Expand Down Expand Up @@ -90,14 +107,31 @@ permissions: {}
jobs:
deployer-db:
name: Database
if: inputs.crunchy == 'true'
uses: ./.github/workflows/.deployer-db.yml
secrets:
oc_namespace: ${{ secrets.OC_NAMESPACE }}
oc_token: ${{ secrets.OC_TOKEN }}
with:
environment: ${{ inputs.environment }}
triggers: ${{ inputs.triggers }}
if: inputs.crunchy_values_file
runs-on: ubuntu-24.04
steps:
- name: Deploy Crunchy
uses: bcgov/action-crunchy@v1.1.0
with:
oc_namespace: ${{ secrets.oc_namespace }}
oc_token: ${{ secrets.oc_token }}
oc_server: ${{ inputs.oc_server }}
environment: ${{ inputs.environment }}
s3_access_key: ${{ secrets.s3_access_key }}
s3_secret_key: ${{ secrets.s3_secret_key }}
s3_bucket: ${{ secrets.s3_bucket }}
s3_endpoint: ${{ secrets.s3_endpoint }}
triggers: ${{ inputs.triggers }}
values_file: ${{ inputs.crunchy_values_file }}

# deployer-db:
# name: Database
# if: inputs.crunchy == 'true'
# uses: ./.github/workflows/.deployer-db.yml
# secrets:
# with:
# environment: ${{ inputs.environment }}
# triggers: ${{ inputs.triggers }}

deploy:
name: Helm
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/pr-open.yml
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ jobs:
oc_token: ${{ secrets.oc_token }}
with:
atomic: false
crunchy: true
crunchy_values_file: crunchy/values.yml
promote_images: backend frontend migrations
promote_tags: pr
repository: bcgov/quickstart-openshift
Expand Down
Loading