Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
27 commits
Select commit Hold shift + click to select a range
3a0c030
first commit 0.5.0
kuanfandevops Mar 20, 2025
25f05e0
Feat: LDV Data Upload #288 (#453)
JulianForeman Mar 27, 2025
30e7450
cleanup
kuanfandevops Mar 27, 2025
1ea37ba
cleanup
kuanfandevops Mar 27, 2025
7b876d1
Fixing sheet name in config for LDV data (#457)
JulianForeman Apr 4, 2025
1cf80a6
Allowing null or empty values on 2 columns (#460)
JulianForeman Apr 9, 2025
13b79e2
Initialize BCGovPubCode yaml file (#461)
rogerlcleung Apr 16, 2025
1a9a526
adds argument for allowing blank postal codes to formatting function …
emi-hi Apr 25, 2025
ff88185
replace backend dc with deployment
kuanfandevops Jun 9, 2025
8c058db
use docker build for backend
kuanfandevops Jun 9, 2025
ccebdcd
update dev pipeline
kuanfandevops Jun 9, 2025
0778da4
remove resources limit
kuanfandevops Jun 9, 2025
5652098
Removing os.remove to fix image not being able to find files (#465)
JulianForeman Jun 17, 2025
2e0a5b7
remove writing files to filesystem (#466)
tim738745 Jun 18, 2025
20cadcc
Fix: Download Dataset Function #468 (#470)
JulianForeman Aug 12, 2025
4626961
Moving invalid values list inside the loop to remove duplicate values…
JulianForeman Aug 26, 2025
53f5acd
471 - decoding command (#475)
tim738745 Sep 4, 2025
ac5c7b3
469: ICBC uploads (#474)
tim738745 Sep 17, 2025
288e47f
better vinpower exception handling (#476)
tim738745 Nov 14, 2025
a8f417a
task: Added file permissions to node_modules (#479)
dallascrichmond Nov 24, 2025
f47fab1
chore: updates for local development (#478)
tim738745 Nov 26, 2025
ed7fac0
469: preprocessing icbc files (#480)
tim738745 Dec 8, 2025
6b498c9
Add artifactory (#481)
kuanfandevops Jan 15, 2026
18d3e31
update branch name
kuanfandevops Jan 15, 2026
fd877b7
udpate app_name to be cthub
kuanfandevops Jan 15, 2026
3b8b520
debug push images to artifactory
kuanfandevops Jan 16, 2026
db8b9ce
Add artifactory to pipelines (#482)
kuanfandevops Jan 17, 2026
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
95 changes: 0 additions & 95 deletions .github/workflows/cleanup-imagetags.yaml

This file was deleted.

94 changes: 58 additions & 36 deletions .github/workflows/dev-ci.yaml
Original file line number Diff line number Diff line change
@@ -1,30 +1,47 @@
## For each release, the value of workflow name, branches and VERSION need to be adjusted accordingly

name: CTHUB 0.4.0 Dev CI
name: CTHUB 0.5.0 Dev CI

on:
push:
branches: [ release-0.4.0 ]
branches: [release-0.5.0]
# paths:
# - frontend/**
# - backend/**
workflow_dispatch:

env:
VERSION: 0.4.0
GIT_URL: https://github.com/bcgov/cthub.git
GIT_URL: https://github.com/bcgov/cthub.git
TOOLS_NAMESPACE: ${{ secrets.OPENSHIFT_NAMESPACE_PLATE }}-tools
DEV_NAMESPACE: ${{ secrets.OPENSHIFT_NAMESPACE_PLATE }}-dev

permissions:
contents: read
issues: write

concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
cancel-in-progress: true

jobs:
set-version:
name: Parse version from branch
runs-on: ubuntu-latest
outputs:
version: ${{ steps.set-version.outputs.VERSION }}
steps:
- id: set-version
run: |
version="${GITHUB_REF_NAME##*-}"
if [[ -z "$version" || "$version" == "$GITHUB_REF_NAME" ]]; then
echo "Invalid branch name '$GITHUB_REF_NAME'; expected pattern '*-<version>'." >&2
exit 1
fi
echo "VERSION=$version" >> "$GITHUB_OUTPUT"

install-oc:
runs-on: ubuntu-latest
needs: set-version
outputs:
cache-hit: ${{ steps.cache.outputs.cache-hit }}
steps:
Expand All @@ -35,7 +52,7 @@ jobs:
id: cache
uses: actions/cache@v4.2.0
with:
path: /usr/local/bin/oc # Path where the `oc` binary will be installed
path: /usr/local/bin/oc # Path where the `oc` binary will be installed
key: oc-cli-${{ runner.os }}

- name: Install OpenShift CLI (if not cached)
Expand All @@ -52,27 +69,26 @@ jobs:
set-pre-release:
name: Calculate pre-release number
runs-on: ubuntu-latest
needs: [install-oc]
needs: [set-version, install-oc]

outputs:
output1: ${{ steps.set-pre-release.outputs.PRE_RELEASE }}

steps:
- id: set-pre-release
run: echo "PRE_RELEASE=$(date +'%Y%m%d%H%M%S')" >> $GITHUB_OUTPUT

build:

name: Build CTHUB
runs-on: ubuntu-latest
needs: set-pre-release
needs: [set-version, set-pre-release]
timeout-minutes: 60

env:
VERSION: ${{ needs.set-version.outputs.version }}
PRE_RELEASE: ${{ needs.set-pre-release.outputs.output1 }}

steps:

- name: Check out repository
uses: actions/checkout@v4.1.1

Expand All @@ -93,9 +109,8 @@ jobs:
- name: Build CTHUB Backend
run: |
cd openshift/templates/backend
oc process -f ./backend-bc.yaml NAME=cthub SUFFIX=-${{ env.VERSION }}-${{ env.PRE_RELEASE }} VERSION=${{ env.VERSION }}-${{ env.PRE_RELEASE }} GIT_URL=${{ env.GIT_URL }} GIT_REF=release-${{ env.VERSION }} | oc apply --wait=true -f - -n ${{ env.TOOLS_NAMESPACE }}
sleep 5s
oc -n ${{ env.TOOLS_NAMESPACE }} wait --for=condition=Complete --timeout=900s build/cthub-backend-${{ env.VERSION }}-${{ env.PRE_RELEASE }}-1
oc process -f ./backend-bc-docker.yaml NAME=cthub SUFFIX=-${{ env.VERSION }}-${{ env.PRE_RELEASE }} VERSION=${{ env.VERSION }}-${{ env.PRE_RELEASE }} GIT_URL=${{ env.GIT_URL }} GIT_REF=release-${{ env.VERSION }} | oc apply --wait=true -f - -n ${{ env.TOOLS_NAMESPACE }}
oc -n ${{ env.TOOLS_NAMESPACE }} start-build cthub-backend-${{ env.VERSION }}-${{ env.PRE_RELEASE }} --wait=true
oc tag ${{ env.TOOLS_NAMESPACE }}/cthub-backend:${{ env.VERSION }}-${{ env.PRE_RELEASE }} ${{ env.DEV_NAMESPACE }}/cthub-backend:${{ env.VERSION }}-${{ env.PRE_RELEASE }}

- name: Build CTHUB Frontend
Expand All @@ -105,7 +120,7 @@ jobs:
sleep 5s
oc -n ${{ env.TOOLS_NAMESPACE }} wait --for=condition=Complete --timeout=900s build/cthub-frontend-${{ env.VERSION }}-${{ env.PRE_RELEASE }}-1
oc tag ${{ env.TOOLS_NAMESPACE }}/cthub-frontend:${{ env.VERSION }}-${{ env.PRE_RELEASE }} ${{ env.DEV_NAMESPACE }}/cthub-frontend:${{ env.VERSION }}-${{ env.PRE_RELEASE }}

- name: Build CTHUB Task Queue
run: |
cd openshift/templates/task-queue
Expand All @@ -123,42 +138,31 @@ jobs:
oc tag ${{ env.TOOLS_NAMESPACE }}/cthub-vinpower:${{ env.VERSION }}-${{ env.PRE_RELEASE }} ${{ env.DEV_NAMESPACE }}/cthub-vinpower:${{ env.VERSION }}-${{ env.PRE_RELEASE }}

deploy:

name: Deploy CTHUB on Dev
runs-on: ubuntu-latest
timeout-minutes: 60
needs: [set-pre-release, build]
needs: [set-version, set-pre-release, build]

env:
VERSION: ${{ needs.set-version.outputs.version }}
PRE_RELEASE: ${{ needs.set-pre-release.outputs.output1 }}

steps:

- name: Checkout Manifest repository
uses: actions/checkout@v4.1.1
with:
repository: bcgov-c/tenant-gitops-30b186
ref: main
ssh-key: ${{ secrets.MANIFEST_REPO_DEPLOY_KEY }}

- name: Update tags
uses: mikefarah/yq@v4.40.5
with:
cmd: |
yq -i '.frontend.image.tag = "${{ env.VERSION }}-${{ env.PRE_RELEASE }}"' cthub/values-dev.yaml
yq -i '.backend.image.tag = "${{ env.VERSION }}-${{ env.PRE_RELEASE }}"' cthub/values-dev.yaml
yq -i '.task-queue.image.tag = "${{ env.VERSION }}-${{ env.PRE_RELEASE }}"' cthub/values-dev.yaml
yq -i '.vinpower.image.tag = "${{ env.VERSION }}-${{ env.PRE_RELEASE }}"' cthub/values-dev.yaml

# - name: Update backend tag
# uses: mikefarah/yq@v4.40.5
# with:
# cmd: yq -i '.backend.image.tag = "${{ env.VERSION }}-${{ env.PRE_RELEASE }}"' cthub/values-dev.yaml

# - name: Update task-queue tag
# uses: mikefarah/yq@v4.40.5
# with:
# cmd: yq -i '.task-queue.image.tag = "${{ env.VERSION }}-${{ env.PRE_RELEASE }}"' cthub/values-dev.yaml
cmd: |
yq -i '.frontend.image.tag = "${{ env.VERSION }}-${{ env.PRE_RELEASE }}"' cthub/values-dev.yaml
yq -i '.backend.image.tag = "${{ env.VERSION }}-${{ env.PRE_RELEASE }}"' cthub/values-dev.yaml
yq -i '.task-queue.image.tag = "${{ env.VERSION }}-${{ env.PRE_RELEASE }}"' cthub/values-dev.yaml
yq -i '.vinpower.image.tag = "${{ env.VERSION }}-${{ env.PRE_RELEASE }}"' cthub/values-dev.yaml

- name: GitHub Commit & Push
run: |
Expand All @@ -167,4 +171,22 @@ jobs:
git add cthub/values-dev.yaml
git commit -m "Update the image tag to ${{ env.VERSION }}-${{ env.PRE_RELEASE }} on Dev"
git push


push-to-artifactory:
name: Push images to Artifactory (${{ matrix.image_stream }})
needs: [set-version, set-pre-release, deploy]
strategy:
matrix:
image_stream:
- cthub-backend
- cthub-frontend
- cthub-task-queue
- cthub-vinpower
uses: ./.github/workflows/push-images-to-artifactory.yaml
with:
env: dev
app_name: cthub
image_stream: ${{ matrix.image_stream }}
image_tag: ${{ needs.set-version.outputs.version }}-${{ needs.set-pre-release.outputs.output1 }}
secrets: inherit

Loading