mirror of
https://github.com/IT4Change/gradido.git
synced 2025-12-13 07:45:54 +00:00
33 lines
798 B
YAML
33 lines
798 B
YAML
name: Gradido Nginx Test CI
|
|
|
|
on: push
|
|
|
|
jobs:
|
|
files-changed:
|
|
name: Detect File Changes - Nginx
|
|
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:
|
|
- name: Checkout code
|
|
uses: actions/checkout@v3
|
|
|
|
- name: nginx | Build 'test' image
|
|
run: docker build -t "gradido/nginx:test" nginx/
|