-
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.
Refactor CI/CD workflows for DemoContainerSecurity and react-app
- Updated buildAndPushContainer.yml to include paths for DemoContainerSecurity container - Updated jhipsterCiCd.yml to include paths for DemoContainerSecurity app - Updated simpleCiPipeline.yml to include paths for react-app
- Loading branch information
Showing
3 changed files
with
26 additions
and
10 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 |
---|---|---|
|
@@ -8,30 +8,34 @@ on: | |
push: | ||
branches: | ||
- main | ||
paths: | ||
- 2_supplychain/2_praxis/DemoContainerSecurity/Demo/container/** | ||
pull_request: | ||
branches: [ "**" ] | ||
|
||
paths: | ||
- 2_supplychain/2_praxis/DemoContainerSecurity/Demo/container/** | ||
workflow_dispatch: | ||
jobs: | ||
build: | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- name: Checkout Repository | ||
- name: Checkout 🛎️ | ||
uses: actions/checkout@v4 | ||
|
||
- name: Docker Setup QEMU | ||
- name: Docker Setup QEMU 🖥️ | ||
uses: docker/[email protected] | ||
|
||
- name: Docker Setup Buildx | ||
- name: Docker Setup Buildx 🛠️ | ||
uses: docker/[email protected] | ||
|
||
- name: Login to Docker Hub | ||
- name: Login to Docker Hub 💁♀️🐳 | ||
uses: docker/[email protected] | ||
with: | ||
username: ${{ secrets.DOCKER_USERNAME }} | ||
password: ${{ secrets.DOCKER_PASSWORD }} | ||
|
||
- name: Build and push Docker image | ||
- name: Build and push Docker image 🛠️💾↗️ | ||
if: ${{ github.event_name != 'pull_request' }} | ||
uses: docker/[email protected] | ||
with: | ||
|
@@ -45,7 +49,7 @@ jobs: | |
cache-from: type=gha | ||
cache-to: type=gha,mode=max | ||
|
||
- name: Build and push Docker image for pull request | ||
- name: Build and push Docker image for pull request 🛠️💾↗️ | ||
if: ${{ github.event_name == 'pull_request' }} | ||
uses: docker/[email protected] | ||
with: | ||
|
@@ -58,7 +62,7 @@ jobs: | |
cache-from: type=gha | ||
cache-to: type=gha,mode=max | ||
|
||
- name: Docker Scout | ||
- name: Docker Scout 🕵️ | ||
id: docker-scout | ||
if: ${{ github.event_name == 'pull_request' }} | ||
uses: docker/scout-action@v1 | ||
|
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