diff --git a/.github/workflows/buildAndPushContainer.yml b/.github/workflows/buildAndPushContainer.yml index a6bbd34..d3af5eb 100644 --- a/.github/workflows/buildAndPushContainer.yml +++ b/.github/workflows/buildAndPushContainer.yml @@ -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/setup-qemu-action@v3.0.0 - - name: Docker Setup Buildx + - name: Docker Setup Buildx 🛠️ uses: docker/setup-buildx-action@v3.0.0 - - name: Login to Docker Hub + - name: Login to Docker Hub 💁‍♀️🐳 uses: docker/login-action@v3.0.0 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/build-push-action@v5.1.0 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/build-push-action@v5.1.0 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 diff --git a/.github/workflows/jhipsterCiCd.yml b/.github/workflows/jhipsterCiCd.yml index 7722875..d5df480 100644 --- a/.github/workflows/jhipsterCiCd.yml +++ b/.github/workflows/jhipsterCiCd.yml @@ -1,5 +1,15 @@ name: JHipster CI/CD Pipeline -on: [push, pull_request] +on: + push: + branches: + - main + paths: + - 2_supplychain/2_praxis/DemoContainerSecurity/Demo/app/** + pull_request: + branches: [ "**" ] + paths: + - 2_supplychain/2_praxis/DemoContainerSecurity/Demo/app/** + workflow_dispatch: jobs: pipeline: name: app pipeline diff --git a/.github/workflows/simpleCiPipeline.yml b/.github/workflows/simpleCiPipeline.yml index 966ffb7..0228d57 100644 --- a/.github/workflows/simpleCiPipeline.yml +++ b/.github/workflows/simpleCiPipeline.yml @@ -3,7 +3,9 @@ on: push: branches: - main - workflow_dispatch: + paths: + - 0_devops/2_praxis/ContinuousIntegration/Demo/react-app/** + workflow_dispatch: jobs: build: runs-on: ubuntu-latest