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
3
.github/file-filters.yml
vendored
3
.github/file-filters.yml
vendored
@ -41,3 +41,6 @@ federation: &federation
|
||||
|
||||
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
|
||||
|
||||
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:
|
||||
name: Docker Build Test - Nginx
|
||||
if: needs.files-changed.outputs.nginx == 'true'
|
||||
needs: files-changed
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
uses: actions/checkout@v3
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user