Skip to content

Commit

Permalink
Added parameters to Init job
Browse files Browse the repository at this point in the history
  • Loading branch information
dallascrichmond committed Oct 18, 2024
1 parent 88b309f commit ead24e2
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 10 deletions.
8 changes: 4 additions & 4 deletions .github/workflows/.deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,10 @@ jobs:
overwrite: true
parameters:
-p NAME_SUFFIX=${{ inputs.target }}
-p DB_PASSWORD=${{ secrets.DB_PASSWORD }}
-p DB_USER=${{ secrets.DB_USER }}
-p DB_NAME=${{ secrets.DB_NAME }}
-p DB_PORT=${{ secrets.DB_PORT }}

database:
name: Database
Expand All @@ -52,10 +56,6 @@ jobs:
parameters:
-p TAG=${{ inputs.tag }}
-p TARGET=${{ inputs.target }}
-p DB_PASSWORD=${{ secrets.DB_PASSWORD }}
-p DB_USER=${{ secrets.DB_USER }}
-p DB_NAME=${{ secrets.DB_NAME }}
-p DB_PORT=${{ secrets.DB_PORT }}

# backend:
# name: Backend
Expand Down
4 changes: 2 additions & 2 deletions common/openshift.init.yml
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
apiVersion: v1
kind: Template
parameters:
- name: NAME_SUFFIX
required: true
# - name: NAME_SUFFIX
# required: true
- name: DB_PASSWORD
required: true
- name: DB_USER
Expand Down
4 changes: 0 additions & 4 deletions database/openshift.deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,10 +16,6 @@ parameters:
- name: TARGET
description: Deployment target; e.g. PR number, test or prod
required: true
- name: DB_PASSWORD
description: Password for the PostgreSQL connection user.
from: "[a-zA-Z0-9]{16}"
generate: expression
objects:
- apiVersion: networking.k8s.io/v1
kind: NetworkPolicy
Expand Down

0 comments on commit ead24e2

Please sign in to comment.