-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'dependencies-update' into dependabot/maven/org.springfr…
…amework-spring-test-5.3.5
- Loading branch information
Showing
3 changed files
with
118 additions
and
11 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,39 @@ | ||
# Creates a new image and push to Openshift image stream & also scan for vulnerabilities | ||
|
||
name: Build and Push Updated Image to Openshift Registry & scan for vulnerabilities | ||
|
||
on: | ||
push: | ||
branches: | ||
- main | ||
pull_request: | ||
branches: | ||
- main | ||
workflow_dispatch: | ||
branches: | ||
- main | ||
|
||
jobs: | ||
|
||
build-push-image: | ||
uses: SierraSystems/reusable-workflows/.github/workflows/openshift-source-to-image.yml@main | ||
with: | ||
build_config_name: bc-paris-api | ||
secrets: | ||
openshift_namespace: ${{ secrets.OPENSHIFT_LICENSE_PLATE_SILVER }}-tools | ||
openshift_server_url: ${{ secrets.OPENSHIFT_SERVER_URL_SILVER }} | ||
openshift_token: ${{ secrets.OPENSHIFT_SA_PIPELINE_TOKEN_SILVER }} | ||
openshift_external_repository: ${{ secrets.OPENSHIFT_EXTERNAL_REPOSITORY_SILVER }} | ||
|
||
trivy-scan-image: | ||
uses: SierraSystems/reusable-workflows/.github/workflows/trivy-scanning-s2i.yml@main | ||
needs: | ||
- build-push-image | ||
with: | ||
imagestream_name: bc-paris-api | ||
source_image_tag: latest | ||
secrets: | ||
openshift_namespace: ${{ secrets.OPENSHIFT_LICENSE_PLATE_SILVER }}-tools | ||
openshift_sa_name: ${{ secrets.OPENSHIFT_SA_NAME }} | ||
openshift_sa_password: ${{ secrets.OPENSHIFT_SA_PASSWORD }} | ||
openshift_external_repository: ${{ secrets.OPENSHIFT_EXTERNAL_REPOSITORY_SILVER }} |
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,67 @@ | ||
# Used to trigger deployment to dev, test & prod Openshift environnment by Image stream re-tagging and labelling pod | ||
|
||
name: Trigger deployment to dev, test & prod Openshift environnment by Image stream re-tagging and labelling pod | ||
|
||
on: | ||
workflow_dispatch: | ||
inputs: | ||
app: | ||
description: 'App Name (bc-paris-api)' | ||
required: true | ||
default: 'bc-paris-api' | ||
imageSourceEnv: | ||
description: 'Image Source Env' | ||
required: true | ||
default: 'latest' | ||
imageTargetEnv: | ||
description: 'Target Release Env' | ||
required: true | ||
default: 'dev' | ||
|
||
jobs: | ||
|
||
promote-image: | ||
uses: SierraSystems/reusable-workflows/.github/workflows/openshift-tag-image.yml@main | ||
with: | ||
image_stream_name: ${{ github.event.inputs.app }} | ||
source_image_tag: ${{ github.event.inputs.imageSourceEnv }} | ||
image_tags: ${{ github.event.inputs.imageTargetEnv }} | ||
secrets: | ||
openshift_namespace: ${{ secrets.OPENSHIFT_LICENSE_PLATE_SILVER }}-tools | ||
openshift_server_url: ${{ secrets.OPENSHIFT_SERVER_URL_SILVER }} | ||
openshift_token: ${{ secrets.OPENSHIFT_SA_PIPELINE_TOKEN_SILVER }} | ||
openshift_external_repository: ${{ secrets.OPENSHIFT_EXTERNAL_REPOSITORY_SILVER }} | ||
|
||
git-commitversion: | ||
uses: SierraSystems/reusable-workflows/.github/workflows/get-github-commitversion.yml@main | ||
with: | ||
working_directory: . | ||
|
||
backup-image: | ||
if: ${{ (github.event.inputs.imageTargetEnv != 'dev') }} | ||
uses: SierraSystems/reusable-workflows/.github/workflows/openshift-tag-image.yml@main | ||
needs: | ||
- git-commitversion | ||
with: | ||
image_stream_name: ${{ github.event.inputs.app }} | ||
source_image_tag: ${{ github.event.inputs.imageSourceEnv }} | ||
image_tags: ${{ needs.git-commitversion.outputs.github-release-version }} | ||
secrets: | ||
openshift_namespace: ${{ secrets.OPENSHIFT_LICENSE_PLATE_SILVER }}-tools | ||
openshift_server_url: ${{ secrets.OPENSHIFT_SERVER_URL_SILVER }} | ||
openshift_token: ${{ secrets.OPENSHIFT_SA_PIPELINE_TOKEN_SILVER }} | ||
openshift_external_repository: ${{ secrets.OPENSHIFT_EXTERNAL_REPOSITORY_SILVER }} | ||
|
||
label-pods: | ||
if: ${{ (github.event.inputs.imageTargetEnv != 'dev') }} | ||
uses: SierraSystems/reusable-workflows/.github/workflows/openshift-dc-pods-labelling.yml@main | ||
needs: | ||
- git-commitversion | ||
with: | ||
app: ${{ github.event.inputs.app }} | ||
target_env: ${{ github.event.inputs.imageTargetEnv }} | ||
label: ${{ needs.git-commitversion.outputs.github-release-version }} | ||
secrets: | ||
openshift_namespace: ${{ secrets.OPENSHIFT_LICENSE_PLATE_SILVER }} | ||
openshift_server_url: ${{ secrets.OPENSHIFT_SERVER_URL_SILVER }} | ||
openshift_sa_env_deployer_token: ${{ secrets.OPENSHIFT_SA_ENV_DEPLOYER_TOKEN }} |
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