Skip to content

Commit

Permalink
Test owners7 (#92)
Browse files Browse the repository at this point in the history
  • Loading branch information
sc979 authored Sep 16, 2024
1 parent 922db06 commit 49bde7c
Show file tree
Hide file tree
Showing 6 changed files with 19 additions and 12 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/docker-keycloak.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ concurrency:

on:
workflow_dispatch:
pull_request_target:
pull_request:
paths:
- ".github/docker/keycloak/**"
push:
Expand All @@ -28,9 +28,9 @@ jobs:
version_file: centreon/www/install/insertBaseConf.sql

create-and-push-docker:
needs: [get-version]
needs: [set-pr-environment, get-version]
if: needs.set-pr-environment.outputs.pull_request_environment == 'internal_contributor'
runs-on: ubuntu-22.04

steps:
- name: Checkout sources
uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/docker-packaging.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ on:
- dev-[2-9][0-9].[0-9][0-9].x
paths:
- ".github/docker/Dockerfile.packaging-*"
pull_request_target:
pull_request:
paths:
- ".github/docker/Dockerfile.packaging-*"

Expand All @@ -29,8 +29,8 @@ jobs:
version_file: centreon/www/install/insertBaseConf.sql

dockerize:
needs: [get-version]

needs: [set-pr-environment, get-version]
if: needs.set-pr-environment.outputs.pull_request_environment == 'internal_contributor'
strategy:
fail-fast: false
matrix:
Expand Down
8 changes: 6 additions & 2 deletions .github/workflows/docker-stable.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,12 @@ jobs:
dockerize-stable:
needs: [get-version]
runs-on: ubuntu-22.04
if: ${{ !cancelled() && !contains(needs.*.result, 'failure') && !contains(needs.*.result, 'cancelled') && needs.get-version.outputs.stability == 'stable' && github.ref_name == 'master' }}

if: |
!cancelled() &&
!contains(needs.*.result, 'failure') &&
!contains(needs.*.result, 'cancelled') &&
needs.get-version.outputs.stability == 'stable' &&
github.ref_name == 'master'
env:
project: centreon-web

Expand Down
5 changes: 3 additions & 2 deletions .github/workflows/docker-translation.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ on:
- dev-[2-9][0-9].[0-9][0-9].x
paths:
- ".github/docker/Dockerfile.translation"
pull_request_target:
pull_request:
paths:
- ".github/docker/Dockerfile.translation"

Expand All @@ -29,7 +29,8 @@ jobs:
version_file: centreon/www/install/insertBaseConf.sql

dockerize:
needs: [get-version]
needs: [set-pr-environment, get-version]
if: needs.set-pr-environment.outputs.pull_request_environment == 'internal_contributor'
runs-on: ubuntu-22.04

steps:
Expand Down
5 changes: 3 additions & 2 deletions .github/workflows/docker-web-dependencies.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ concurrency:

on:
workflow_dispatch:
pull_request_target:
pull_request:
paths:
- '.github/docker/centreon-web/**/Dockerfile.dependencies'
schedule:
Expand All @@ -25,7 +25,8 @@ jobs:
version_file: centreon/www/install/insertBaseConf.sql

dockerize:
needs: [get-version]
needs: [set-pr-environment, get-version]
if: needs.set-pr-environment.outputs.pull_request_environment == 'internal_contributor'
runs-on: ubuntu-24.04

strategy:
Expand Down
1 change: 1 addition & 0 deletions .github/workflows/web.yml
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,7 @@ jobs:

changes:
runs-on: ubuntu-22.04
needs: [get-version]
outputs:
has_frontend_changes: ${{ steps.filter.outputs.has_frontend_changes }}
has_backend_changes: ${{ steps.filter.outputs.has_backend_changes }}
Expand Down

0 comments on commit 49bde7c

Please sign in to comment.