generated from bcgov/quickstart-openshift
-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #591 from bcgov/dev
dev to main merge 29 dec
- Loading branch information
Showing
42 changed files
with
11,217 additions
and
2,217 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,71 @@ | ||
name: debezium-jdbc | ||
|
||
on: | ||
workflow_dispatch: | ||
inputs: | ||
START_BUILD: | ||
required: true | ||
type: boolean | ||
description: This value is ignored, just to trigger dispatch. | ||
push: | ||
branches: | ||
- dev | ||
- main | ||
- feat/srs-25-etl-deploy | ||
paths: | ||
- 'etl/**' | ||
- '.github/workflows/**' | ||
|
||
defaults: | ||
run: | ||
shell: bash | ||
working-directory: ./etl/debezium-jdbc | ||
env: | ||
APP_NAME: "debezium-jdbc" | ||
|
||
jobs: | ||
etl-debezium-jdbc-cd-by-push: | ||
runs-on: ubuntu-20.04 | ||
|
||
if: github.repository == 'bcgov/nr-epd-digital-services' | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- name: Set ENV variables | ||
id: set-variable | ||
# make sure to update the TOOLS_NAME once all the environment for forms-flow-ai-web is ready | ||
run: | | ||
if [ '${{ github.ref_name }}' == 'dev' ]; then | ||
echo "For ${{ github.ref_name }} branch" | ||
echo "TOOLS_NAME=${{secrets.OC_ETL_NAMESPACE_NAMEPLATE}}" >> $GITHUB_ENV | ||
echo "TAG_NAME="dev"" >> $GITHUB_ENV | ||
echo "BRANCH_NAME="dev"" >> $GITHUB_ENV | ||
echo "ENV_NAME="dev"" >> $GITHUB_ENV | ||
elif [ '${{ github.ref_name }}' == 'main' ]; then | ||
echo "For ${{ github.ref_name }} branch" | ||
echo "TOOLS_NAME=${{secrets.OC_ETL_NAMESPACE_NAMEPLATE}}" >> $GITHUB_ENV | ||
echo "TAG_NAME="test"" >> $GITHUB_ENV | ||
echo "BRANCH_NAME="main"" >> $GITHUB_ENV | ||
echo "ENV_NAME="test"" >> $GITHUB_ENV | ||
else | ||
echo "For ${{ github.ref_name }} branch, defaulting to dev values" | ||
echo "TOOLS_NAME=${{secrets.OC_ETL_NAMESPACE_NAMEPLATE}}" >> $GITHUB_ENV | ||
echo "TAG_NAME="dev"" >> $GITHUB_ENV | ||
echo "BRANCH_NAME="dev"" >> $GITHUB_ENV | ||
fi | ||
shell: bash | ||
|
||
- name: Login Openshift | ||
shell: bash | ||
run: | | ||
oc login --server=${{secrets.OC_SERVER}} --token=${{secrets.OC_TOKEN}} | ||
- name: Tools project | ||
shell: bash | ||
run: | | ||
oc project ${{ secrets.OC_ETL_NAMESPACE_NAMEPLATE }}-tools | ||
- name: Start Build Openshift | ||
shell: bash | ||
run: | | ||
oc start-build ${{ env.APP_NAME }}-${{ env.TAG_NAME }}-build --wait | ||
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,83 @@ | ||
name: debezium-postgis Custom | ||
|
||
on: | ||
workflow_dispatch: | ||
inputs: | ||
START_BUILD: | ||
required: true | ||
type: boolean | ||
description: This value is ignored, just to trigger dispatch. | ||
push: | ||
branches: | ||
- dev | ||
- main | ||
- feat/srs-25-etl-deploy | ||
paths: | ||
- 'etl/**' | ||
- '.github/workflows/**' | ||
|
||
defaults: | ||
run: | ||
shell: bash | ||
working-directory: ./etl/debezium-postgis | ||
env: | ||
APP_NAME: "debezium-postgis" | ||
|
||
jobs: | ||
etl-debezium-postgis-cd-by-push: | ||
runs-on: ubuntu-20.04 | ||
|
||
if: github.repository == 'bcgov/nr-epd-digital-services' | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- name: Set ENV variables | ||
id: set-variable | ||
# make sure to update the TOOLS_NAME once all the environment for forms-flow-ai-web is ready | ||
run: | | ||
if [ '${{ github.ref_name }}' == 'dev' ]; then | ||
echo "For ${{ github.ref_name }} branch" | ||
echo "TOOLS_NAME=${{secrets.OC_ETL_NAMESPACE_NAMEPLATE}}" >> $GITHUB_ENV | ||
echo "TAG_NAME="dev"" >> $GITHUB_ENV | ||
echo "BRANCH_NAME="dev"" >> $GITHUB_ENV | ||
echo "ENV_NAME="dev"" >> $GITHUB_ENV | ||
elif [ '${{ github.ref_name }}' == 'main' ]; then | ||
echo "For ${{ github.ref_name }} branch" | ||
echo "TOOLS_NAME=${{secrets.OC_ETL_NAMESPACE_NAMEPLATE}}" >> $GITHUB_ENV | ||
echo "TAG_NAME="test"" >> $GITHUB_ENV | ||
echo "BRANCH_NAME="main"" >> $GITHUB_ENV | ||
echo "ENV_NAME="test"" >> $GITHUB_ENV | ||
else | ||
echo "For ${{ github.ref_name }} branch, defaulting to dev values" | ||
echo "TOOLS_NAME=${{secrets.OC_ETL_NAMESPACE_NAMEPLATE}}" >> $GITHUB_ENV | ||
echo "TAG_NAME="dev"" >> $GITHUB_ENV | ||
echo "BRANCH_NAME="dev"" >> $GITHUB_ENV | ||
fi | ||
shell: bash | ||
|
||
- name: Login Openshift | ||
shell: bash | ||
run: | | ||
oc login --server=${{secrets.OC_SERVER}} --token=${{secrets.OC_TOKEN}} | ||
- name: Tools project | ||
shell: bash | ||
run: | | ||
oc project ${{ secrets.OC_ETL_NAMESPACE_NAMEPLATE }}-tools | ||
# Build from either dev or main branch as appropriate | ||
- name: Build from ${{ env.BRANCH_NAME }} branch | ||
shell: bash | ||
run: | | ||
oc patch bc/${{ env.APP_NAME }}-build -p '{"spec":{"source":{"git":{"ref":"${{ env.BRANCH_NAME }}"}}}}' | ||
- name: Start Build Openshift | ||
shell: bash | ||
run: | | ||
oc start-build ${{ env.APP_NAME }}-build --wait | ||
- name: Tag+Deploy for ${{ env.TAG_NAME }} | ||
shell: bash | ||
run: | | ||
oc tag ${{ env.APP_NAME }}:latest ${{ env.APP_NAME }}:${{ env.TAG_NAME }} | ||
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file removed
BIN
-2.15 KB
etl/debezium-jdbc/target/classes/ca/bc/gov/epd/kafka/connect/transform/ToUpperCase.class
Binary file not shown.
Binary file removed
BIN
-4.03 KB
etl/debezium-jdbc/target/kafka-connect-debezium-transforms-1.0-SNAPSHOT.jar
Binary file not shown.
This file was deleted.
Oops, something went wrong.
1 change: 0 additions & 1 deletion
1
...m-jdbc/target/maven-status/maven-compiler-plugin/compile/default-compile/createdFiles.lst
This file was deleted.
Oops, something went wrong.
1 change: 0 additions & 1 deletion
1
...ium-jdbc/target/maven-status/maven-compiler-plugin/compile/default-compile/inputFiles.lst
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
|
||
FROM debezium/kafka:1.9 | ||
|
||
|
||
COPY connect-log4j.properties /kafka/config/ | ||
COPY log4j.properties /kafka/config/ |
Oops, something went wrong.