Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore(ci): Move Minio deploy job before database deploy job. #122

Merged
merged 4 commits into from
Oct 30, 2024
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
37 changes: 19 additions & 18 deletions .github/workflows/.deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,25 @@ jobs:
-p S3_HOST=${{ secrets.S3_HOST }}
-p S3_ROOT_BUCKET=${{ secrets.S3_ROOT_BUCKET }}

# minio:
# name: Minio
# needs: [ init ]
# runs-on: ubuntu-latest
# steps:
# - name: Deploy Minio
# uses: bcgov-nr/[email protected]
# with:
# oc_namespace: ${{ vars.OC_NAMESPACE }}
# oc_server: ${{ vars.OC_SERVER }}
# oc_token: ${{ secrets.OC_TOKEN }}
# oc_version: "4.14.37"
# file: minio/openshift.deploy.yml
# parameters:
# -p NAME_SUFFIX=-dev-${{ github.event.number }}
# -p IMAGE_TAG=${{ github.event.number }}
# -p ENV_NAME=dev
# -p MINIO_DATA_DIR=/data

database:
name: Database
needs: init
Expand Down Expand Up @@ -143,21 +162,3 @@ jobs:
-p NAME_SUFFIX=-dev-${{ github.event.number }}
-p IMAGE_TAG=${{ github.event.number }}
-p ENV_NAME=dev
minio:
name: Minio
needs: [ init, database, backend, frontend ]
runs-on: ubuntu-latest
steps:
- name: Deploy Minio
uses: bcgov-nr/[email protected]
with:
oc_namespace: ${{ vars.OC_NAMESPACE }}
oc_server: ${{ vars.OC_SERVER }}
oc_token: ${{ secrets.OC_TOKEN }}
oc_version: "4.14.37"
file: minio/openshift.deploy.yml
parameters:
-p NAME_SUFFIX=-dev-${{ github.event.number }}
-p IMAGE_TAG=${{ github.event.number }}
-p ENV_NAME=dev
-p MINIO_DATA_DIR=/data
2 changes: 1 addition & 1 deletion minio/openshift.deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,7 @@ objects:
limits:
cpu: 100m
requests:
cpu: 50m
cpu: 75m
terminationMessagePath: /dev/termination-log
terminationMessagePolicy: File
volumeMounts:
Expand Down
Loading