mirror of
https://github.com/IT4Change/gradido.git
synced 2025-12-13 07:45:54 +00:00
add file filter check to nginx workflow
This commit is contained in:
parent
8ffe58fc5e
commit
20c1261c2c
5
.github/file-filters.yml
vendored
5
.github/file-filters.yml
vendored
@ -40,4 +40,7 @@ federation: &federation
|
|||||||
- 'federation/**/*'
|
- 'federation/**/*'
|
||||||
|
|
||||||
frontend: &frontend
|
frontend: &frontend
|
||||||
- 'frontend/**/*'
|
- 'frontend/**/*'
|
||||||
|
|
||||||
|
nginx: &nginx
|
||||||
|
- 'nginx/**/*'
|
||||||
18
.github/workflows/test-nginx.yml
vendored
18
.github/workflows/test-nginx.yml
vendored
@ -3,8 +3,26 @@ name:
|
|||||||
on: push
|
on: push
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
|
files-changed:
|
||||||
|
name: Detect File Changes - Frontend
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
outputs:
|
||||||
|
nginx: ${{ steps.changes.outputs.nginx }}
|
||||||
|
steps:
|
||||||
|
- uses: actions/checkout@v3.3.0
|
||||||
|
|
||||||
|
- name: Check for nginx file changes
|
||||||
|
uses: dorny/paths-filter@v2.11.1
|
||||||
|
id: changes
|
||||||
|
with:
|
||||||
|
token: ${{ github.token }}
|
||||||
|
filters: .github/file-filters.yml
|
||||||
|
list-files: shell
|
||||||
|
|
||||||
build_test_nginx:
|
build_test_nginx:
|
||||||
name: Docker Build Test - Nginx
|
name: Docker Build Test - Nginx
|
||||||
|
if: needs.files-changed.outputs.nginx == 'true'
|
||||||
|
needs: files-changed
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
uses: actions/checkout@v3
|
uses: actions/checkout@v3
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user