Skip to content

Commit

Permalink
feat: added skip to insecure connection when extracting certs (#53)
Browse files Browse the repository at this point in the history
* feat: added retag to image

* feat: skipping cert extract if using insecure port
  • Loading branch information
paulushcgcj authored Aug 28, 2024
1 parent 2e60654 commit cbd86ee
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 9 deletions.
10 changes: 1 addition & 9 deletions .github/workflows/pr-close.yml
Original file line number Diff line number Diff line change
Expand Up @@ -75,12 +75,4 @@ jobs:
name: ca.bc.gov.nrs-commons.forest-client-spring
version: ${{ needs.vars.outputs.semver }}.PR${{ github.event.number }}
user: ${{ github.repository_owner }}
cleanup:
name: Cleanup and Images
uses: bcgov/quickstart-openshift-helpers/.github/workflows/[email protected]
secrets:
oc_namespace: ${{ secrets.OC_NAMESPACE }}
oc_token: ${{ secrets.OC_TOKEN }}
with:
cleanup: label
packages: certextractor

6 changes: 6 additions & 0 deletions certextractor/startup.sh
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,12 @@ mkdir -p $cert_folder

generate_cert() {

if [ "$ORACLEDB_PORT" = "1521" ]; then
echo "ORACLEDB_PORT is set to insecure 1521. Skipping certificate generation."
return
fi


echo "I will try to get the ${ORACLEDB_HOST}-1 cert"
echo "Connecting to ${ORACLEDB_HOST}:${ORACLEDB_PORT}"

Expand Down

0 comments on commit cbd86ee

Please sign in to comment.