Skip to content

Commit

Permalink
Test GCP build on feature branch (#1681)
Browse files Browse the repository at this point in the history
* 24511 solr documentation (#1628)

Signed-off-by: Shaanjot Gill <gill.shaanjots@gmail.com>

* 24849 search endpoint directly queries names db (#1629)

* 24849 change request search back to being a search (#1630)

* 24849 search works with name as well (#1631)

* 24774 Bad Name Notifier (#1633)

* create the job

* create the job

* revert invalid changes

* update codkerfile

* update according to sonarqube check

* update

* update dockerfile

* update dockerfile

* fix sonar errors

* bug fix

---------

Co-authored-by: eve-git <root@PF524S4L.idir.BCGOV>
Co-authored-by: bolyachevets <andriy.bolyachevets@gov.bc.ca>

* add logging (#1636)

* 24774 Create bad-name-notifier workflow (#1637)

* Create bad-name-notifier.yml

* Rename bad-name-notifier.yml to bad-name-notifier-cd.yml

* Create bad-name-notifier-CI.yml (#1638)

* 24849 firm nrs added to names core only (#1632)

* feat: firm nrs added to names core only

* revert: changes to /search endpoint

* 24225 update emails for new ia with magic link (#1634) (#1639)

* 24225 update emails for new ia with magic link

* fix lint issue

* update env, template

* fix bug

* update the email and output templates

* udpate comment

* update small template

* 24223 update get_instruction_group for CHG and CNV

Co-authored-by: Kevin Zhang <54437031+kzdev420@users.noreply.github.com>

* cd: update cd name (#1640)

* Change cd name (#1641)

* cd: update cd name

* update clouddeploy name

* cd: update clouddeploy (#1642)

* fix service account names (#1643)

* 24225 debug emaler (#1644)

* 24225_update_magic_link_with_debug (#1645)

* Update emailer-cd-gcp.yml

* 24225_update_version_namex_api (#1646)

* 24225_udpate_instruction_group_method (#1647)

* 24225 update env variables (#1648)

* 24225_update_debug_code (#1649)

* 25012_update_email_outputs_debug (#1652)

* create bad-designation-notifier (#1651)

* create bad-designation-notifier

* update config.py according to SonarQube duplication error

* update config.py according to SonarQube duplication error

* update according to SonarQube duplication error

* update according to SonarQube duplication error

* update according to sonarQube errors

* 25012_emailer_api_debug (#1653)

* Create sftp-nuans-report-ci.yml (#1616)

* add a linefeed at the end of the files (#1655)

* Create sftp-nuans-report-cd.yml (#1615)

* update flask-jwt-oidc package (#1656)

* Update flask jwt OIDC deps (#1657)

* revert updates to api lock dependencies except jwt-oidc

* remove broken flask-jwt-oidc package from lock file

* emailer uses latest version of namex api (#1658)

* 25167 add feature flags service enable won emails (#1659)

* 25167 add_feature_flags_service_enable_won_emails

* fix line issue

* fix the env key

* use the update namex api in emailer

* Update Makefile - commented out update-env as per P.W.

* Update Makefile - comment out update-env as per P.W.

* Update Makefile -

* Update Makefile - commented out update-env as per P.W.

* Update Makefile - undo -> commented out update-env as per P.W.

* Update Makefile - commented out update-env as per P.W.

* Update Makefile - commented out update-env as per P.W.

* Fix emailer issue (#1672)

* fix: flags use env from config

* chore: emailer uses latest version of namex

* fix: allow users modify cancel from legacy side (#1673)

* 25167 feature flgas enable won emails (#1674)

* 25167_feature_flgas_enable_won_emails

* use latest api with reference

* 25256_update_email_content (#1675)

* 25270_add_env_values (#1676)

* Update emailer-cd-gcp.yml

Removed API build when emailer changes.

* 24739 Affiliating a new NR to specified account id (#1677)

* affiliate new nr

* update version

* 25356 update_outputs_CHG_CNV_NR (#1679)

* 25356_update_outputs_CHG_CNV_NR

* update emailer poetry to use the latest api

* feat: use db in gcp

* chore: update version of namex used

* fix: permission issue

* feat: nr-day-job uses gcp db

* feat: namex pay uses gcp db

* feat: use namex db in gcp

* chore: remove auto-analyze service

---------

Signed-off-by: Shaanjot Gill <gill.shaanjots@gmail.com>
Co-authored-by: Shaanjot Gill <shaangill025@users.noreply.github.com>
Co-authored-by: eve-git <54647458+eve-git@users.noreply.github.com>
Co-authored-by: eve-git <root@PF524S4L.idir.BCGOV>
Co-authored-by: bolyachevets <andriy.bolyachevets@gov.bc.ca>
Co-authored-by: Omid Zamani <omid.x.zamani@gov.bc.ca>
Co-authored-by: Kevin Zhang <54437031+kzdev420@users.noreply.github.com>
Co-authored-by: rarmitag <35737789+rarmitag@users.noreply.github.com>
  • Loading branch information
8 people authored Jan 21, 2025
1 parent 663a8dc commit ca14b49
Show file tree
Hide file tree
Showing 112 changed files with 5,363 additions and 1,714 deletions.
30 changes: 0 additions & 30 deletions .github/workflows/auto-analyze-cd.yml

This file was deleted.

22 changes: 0 additions & 22 deletions .github/workflows/auto-analyze-ci.yml

This file was deleted.

72 changes: 72 additions & 0 deletions .github/workflows/bad-name-notifier-CI.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,72 @@
name: Bad Name Notifier CI

on:
pull_request:
types: [assigned, synchronize]
paths:
- "jobs/bad-name-notifier/**"
workflow_dispatch:

defaults:
run:
shell: bash
working-directory: ./jobs/bad-name-notifier

jobs:
setup-job:
runs-on: ubuntu-20.04

steps:
- uses: actions/checkout@v4
- run: "true"

linting:
needs: setup-job
runs-on: ubuntu-20.04

strategy:
matrix:
python-version: ["3.12"]

steps:
- uses: actions/checkout@v4
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v1
with:
python-version: ${{ matrix.python-version }}
- name: Install dependencies
run: |
make setup
- name: Lint with flake8
id: flake8
run: |
poetry run flake8 src/app.py
# Uncomment and customize this block if testing is required
# testing:
# needs: setup-job
# runs-on: ubuntu-20.04
# steps:
# - uses: actions/checkout@v4
# - name: Set up Python ${{ matrix.python-version }}
# uses: actions/setup-python@v1
# with:
# python-version: ${{ matrix.python-version }}
# - name: Install dependencies
# run: |
# make setup
# - name: Test with pytest
# id: test
# run: |
# make test

build-check:
needs: setup-job
runs-on: ubuntu-20.04

steps:
- uses: actions/checkout@v4
- name: Build to check strictness
id: build
run: |
make build-nc
82 changes: 82 additions & 0 deletions .github/workflows/bad-name-notifier-cd.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,82 @@
name: Bad Name Notifier CD

on:
push:
branches:
- main
paths:
- "jobs/bad-name-notifier/**"
workflow_dispatch:
inputs:
environment:
description: "Environment (dev/test/prod)"
required: true
default: "dev"

defaults:
run:
shell: bash
working-directory: ./jobs/bad-name-notifier

env:
APP_NAME: "bad-name-notifier"
TAG_NAME: "dev"

jobs:
bad-name-notifier-cd-by-push:
runs-on: ubuntu-20.04

if: github.event_name == 'push' && github.repository == 'bcgov/namex'
environment:
name: "dev"

steps:
- uses: actions/checkout@v3

- name: Login Openshift
shell: bash
run: |
oc login --server=${{secrets.OPENSHIFT4_LOGIN_REGISTRY}} --token=${{secrets.OPENSHIFT4_SA_TOKEN}}
- name: CD Flow
shell: bash
env:
OPS_REPOSITORY: ${{ secrets.OPS_REPOSITORY }}
OPENSHIFT_DOCKER_REGISTRY: ${{ secrets.OPENSHIFT4_DOCKER_REGISTRY }}
OPENSHIFT_SA_NAME: ${{ secrets.OPENSHIFT4_SA_NAME }}
OPENSHIFT_SA_TOKEN: ${{ secrets.OPENSHIFT4_SA_TOKEN }}
OPENSHIFT_REPOSITORY: ${{ secrets.OPENSHIFT4_REPOSITORY }}
TAG_NAME: ${{ env.TAG_NAME }}
run: |
make cd
bad-name-notifier-cd-by-dispatch:
runs-on: ubuntu-20.04

if: github.event_name == 'workflow_dispatch' && github.repository == 'bcgov/namex'
environment:
name: "${{ github.event.inputs.environment }}"

steps:
- uses: actions/checkout@v3

- name: Set env by input
run: |
echo "TAG_NAME=${{ github.event.inputs.environment }}" >> $GITHUB_ENV
- name: Login Openshift
shell: bash
run: |
oc login --server=${{secrets.OPENSHIFT4_LOGIN_REGISTRY}} --token=${{secrets.OPENSHIFT4_SA_TOKEN}}
- name: CD Flow
shell: bash
env:
OPS_REPOSITORY: ${{ secrets.OPS_REPOSITORY }}
OPENSHIFT_DOCKER_REGISTRY: ${{ secrets.OPENSHIFT4_DOCKER_REGISTRY }}
OPENSHIFT_SA_NAME: ${{ secrets.OPENSHIFT4_SA_NAME }}
OPENSHIFT_SA_TOKEN: ${{ secrets.OPENSHIFT4_SA_TOKEN }}
OPENSHIFT_REPOSITORY: ${{ secrets.OPENSHIFT4_REPOSITORY }}
TAG_NAME: ${{ env.TAG_NAME }}
run: |
make cd
2 changes: 1 addition & 1 deletion .github/workflows/emailer-cd-gcp.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ jobs:
id-token: write
contents: write

uses: bcgov/bcregistry-sre/.github/workflows/cloud-run-service-cd.yaml@main
uses: bcgov/bcregistry-sre/.github/workflows/backend-cd.yaml@main
with:
target: ${{ github.event.inputs.target }} # Corrected the input reference
app_name: "namex-emailer"
Expand Down
103 changes: 103 additions & 0 deletions .github/workflows/sftp-nuans-report-cd.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,103 @@
name: SFTP NUANS Report Job CD

on:
push:
branches:
- main
paths:
- "jobs/sftp-nuans-report/**"
workflow_dispatch:
inputs:
environment:
description: "Environment (dev/test/prod)"
required: true
default: "dev"

defaults:
run:
shell: bash
working-directory: ./jobs/sftp-nuans-report

env:
APP_NAME: "sftp-nuans-report"
TAG_NAME: "dev"

jobs:
sftp-nuans-report-cd-by-push:
runs-on: ubuntu-20.04

if: github.event_name == 'push' && github.repository == 'bcgov/namex'
environment:
name: "dev"

steps:
- uses: actions/checkout@v3

- name: Login Openshift
shell: bash
run: |
oc login --server=${{secrets.OPENSHIFT4_LOGIN_REGISTRY}} --token=${{secrets.OPENSHIFT4_SA_TOKEN}}
- name: CD Flow
shell: bash
env:
OPS_REPOSITORY: ${{ secrets.OPS_REPOSITORY }}
OPENSHIFT_DOCKER_REGISTRY: ${{ secrets.OPENSHIFT4_DOCKER_REGISTRY }}
OPENSHIFT_SA_NAME: ${{ secrets.OPENSHIFT4_SA_NAME }}
OPENSHIFT_SA_TOKEN: ${{ secrets.OPENSHIFT4_SA_TOKEN }}
OPENSHIFT_REPOSITORY: ${{ secrets.OPENSHIFT4_REPOSITORY }}
TAG_NAME: ${{ env.TAG_NAME }}
run: |
make cd
- name: Rocket.Chat Notification
uses: RocketChat/Rocket.Chat.GitHub.Action.Notification@master
if: failure()
with:
type: ${{ job.status }}
job_name: "*SFTP NUANS Report Job Built and Deployed to ${{env.TAG_NAME}}*"
channel: "#registries-bot"
url: ${{ secrets.ROCKETCHAT_WEBHOOK }}
commit: true
token: ${{ secrets.GITHUB_TOKEN }}

sftp-nuans-report-cd-by-dispatch:
runs-on: ubuntu-20.04

if: github.event_name == 'workflow_dispatch' && github.repository == 'bcgov/namex'
environment:
name: "${{ github.event.inputs.environment }}"

steps:
- uses: actions/checkout@v3
- name: Set env by input
run: |
echo "TAG_NAME=${{ github.event.inputs.environment }}" >> $GITHUB_ENV
- name: Login Openshift
shell: bash
run: |
oc login --server=${{secrets.OPENSHIFT4_LOGIN_REGISTRY}} --token=${{secrets.OPENSHIFT4_SA_TOKEN}}
- name: CD Flow
shell: bash
env:
OPS_REPOSITORY: ${{ secrets.OPS_REPOSITORY }}
OPENSHIFT_DOCKER_REGISTRY: ${{ secrets.OPENSHIFT4_DOCKER_REGISTRY }}
OPENSHIFT_SA_NAME: ${{ secrets.OPENSHIFT4_SA_NAME }}
OPENSHIFT_SA_TOKEN: ${{ secrets.OPENSHIFT4_SA_TOKEN }}
OPENSHIFT_REPOSITORY: ${{ secrets.OPENSHIFT4_REPOSITORY }}
TAG_NAME: ${{ env.TAG_NAME }}
run: |
make cd
- name: Rocket.Chat Notification
uses: RocketChat/Rocket.Chat.GitHub.Action.Notification@master
if: failure()
with:
type: ${{ job.status }}
job_name: "*SFTP NUANS Report Job Built and Deployed to ${{env.TAG_NAME}}*"
channel: "#registries-bot"
url: ${{ secrets.ROCKETCHAT_WEBHOOK }}
commit: true
token: ${{ secrets.GITHUB_TOKEN }}
Loading

0 comments on commit ca14b49

Please sign in to comment.