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

Release Dev to Test #241

Merged
merged 1 commit into from
Mar 21, 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
8 changes: 1 addition & 7 deletions .config/config.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,7 @@
"db": "biohub-platform-db",
"api": "biohub-platform-api",
"queue": "biohub-platform-queue",
"app": "biohub-platform-app",
"geoserver": "biohub-platform-geoserver"
"app": "biohub-platform-app"
},
"staticUrls": {
"dev": "dev-biohub-platform.apps.silver.devops.gov.bc.ca",
Expand All @@ -29,11 +28,6 @@
"test": "api-test-biohub-platform.apps.silver.devops.gov.bc.ca",
"prod": "api-biohub-platform.apps.silver.devops.gov.bc.ca"
},
"staticUrlsGeoServer": {
"dev": "geoserver-dev-biohub-platform.apps.silver.devops.gov.bc.ca",
"test": "geoserver-test-biohub-platform.apps.silver.devops.gov.bc.ca",
"prod": "geoserver-biohub-platform.apps.silver.devops.gov.bc.ca"
},
"siteminderLogoutURL": {
"dev": "https://logontest7.gov.bc.ca/clp-cgi/logoff.cgi",
"test": "https://logontest7.gov.bc.ca/clp-cgi/logoff.cgi",
Expand Down
11 changes: 0 additions & 11 deletions .docker/nginx/n8n/Dockerfile

This file was deleted.

19 changes: 0 additions & 19 deletions .docker/nginx/n8n/dev.conf

This file was deleted.

95 changes: 0 additions & 95 deletions .github/workflows/backup/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -70,98 +70,3 @@ jobs:
echo $CYPRESS_authRealm
echo $CYPRESS_authClientId
echo $CYPRESS_authUrl

# Build the GeoServer image
buildGeoserver:
name: Build GeoServer Image
runs-on: ubuntu-latest
if: ${{ github.event.pull_request.merged == false && github.event.pull_request.draft == false }}
env:
PR_NUMBER: ${{ github.event.number }}
needs:
- checkoutRepo
steps:
# Install Node - for `node` and `npm` commands
- name: Setup Node.js
uses: actions/setup-node@v3
with:
node-version: 14

# Load repo from cache
- name: Cache repo
uses: actions/cache@v3
id: cache-repo
env:
cache-name: cache-repo
with:
path: ${{ github.workspace }}/*
key: ${{ runner.os }}-build-${{ env.cache-name }}-${{ github.sha }}
restore-keys: |
${{ runner.os }}-build-${{ env.cache-name }}-${{ github.sha }}

# Checkout the branch if not restored via cache
- name: Checkout Target Branch
if: steps.cache-repo.outputs.cache-hit != 'true'
uses: actions/checkout@v3

# Log in to OpenShift.
# Note: The secrets needed to log in are NOT available if the PR comes from a FORK.
# PR's must originate from a branch off the original repo or else all openshift `oc` commands will fail.
- name: Log in to OpenShift
run: oc login --token=${{ secrets.TOOLS_SA_TOKEN }} --server=https://api.silver.devops.gov.bc.ca:6443

# Build the GeoServer image
- name: Build GeoServer Image
working-directory: "./geoserver/.pipeline/"
run: |
npm ci
DEBUG=* npm run build -- --pr=$PR_NUMBER

# Deploy GeoServer image
deployGeoserver:
name: Deploy Geoserver Image
runs-on: ubuntu-latest
if: ${{ github.event.pull_request.merged == false && github.event.pull_request.draft == false }}
env:
PR_NUMBER: ${{ github.event.number }}
needs:
- scaleDownPods
- buildGeoserver
# - deployDatabase
# - deployDatabaseSetup
steps:
# Install Node - for `node` and `npm` commands
- name: Setup Node.js
uses: actions/setup-node@v3
with:
node-version: 14

# Load repo from cache
- name: Cache repo
uses: actions/cache@v3
id: cache-repo
env:
cache-name: cache-repo
with:
path: ${{ github.workspace }}/*
key: ${{ runner.os }}-build-${{ env.cache-name }}-${{ github.sha }}
restore-keys: |
${{ runner.os }}-build-${{ env.cache-name }}-${{ github.sha }}

# Checkout the branch if not restored via cache
- name: Checkout Target Branch
if: steps.cache-repo.outputs.cache-hit != 'true'
uses: actions/checkout@v3

# Log in to OpenShift.
# Note: The secrets needed to log in are NOT available if the PR comes from a FORK.
# PR's must originate from a branch off the original repo or else all openshift `oc` commands will fail.
- name: Log in to OpenShift
run: oc login --token=${{ secrets.TOOLS_SA_TOKEN }} --server=https://api.silver.devops.gov.bc.ca:6443

# Deploy the GeoServer image
- name: Deploy GeoServer Image
working-directory: "./geoserver/.pipeline/"
run: |
npm ci
DEBUG=* npm run deploy -- --pr=$PR_NUMBER --env=dev
14 changes: 7 additions & 7 deletions .github/workflows/cleanClosedPR.yml
Original file line number Diff line number Diff line change
Expand Up @@ -73,13 +73,13 @@ jobs:
DEBUG=* npm run clean -- --pr=$PR_NUMBER --env=build
DEBUG=* npm run clean -- --pr=$PR_NUMBER --env=dev

# Clean the queue deployment artifacts
- name: Clean Queue Deployment
working-directory: "./api/.pipeline/"
run: |
npm ci
DEBUG=* npm run queue:clean -- --pr=$PR_NUMBER --env=build
DEBUG=* npm run queue:clean -- --pr=$PR_NUMBER --env=dev
# # Clean the queue deployment artifacts
# - name: Clean Queue Deployment
# working-directory: "./api/.pipeline/"
# run: |
# npm ci
# DEBUG=* npm run queue:clean -- --pr=$PR_NUMBER --env=build
# DEBUG=* npm run queue:clean -- --pr=$PR_NUMBER --env=dev

# Clean the reamaining build/deployment artifacts
- name: Clean remaining Artifacts
Expand Down
Loading
Loading