-
Notifications
You must be signed in to change notification settings - Fork 3
43 lines (42 loc) · 1.18 KB
/
commit-main.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
name: Commit Main Branch
on:
push:
branches: [ main ]
paths:
- .github/workflows/*
- OryAdmin/**
- KratosSelfService/**
jobs:
check-changes:
runs-on: ubuntu-latest
outputs:
ory-admin: ${{ steps.filter.outputs.ory_admin }}
kratos-self-service: ${{ steps.filter.outputs.kratos-self-service }}
steps:
- name: Checkout code
uses: actions/checkout@v4
- uses: dorny/paths-filter@v2
name: git diff
id: filter
with:
filters: |
ory-admin:
- 'OryAdmin/**'
kratos-self-service:
- 'KratosSelfService/**'
docker-ory-admin:
name: OryAdmin
uses: josxha/Oryon/.github/workflows/docker-build-ory_admin.yml@main
needs: check-changes
#if: ${{ needs.check-changes.outputs.ory-admin == 'true' }}
secrets: inherit
with:
IMAGE_TAG: latest
docker-kratos_self-service:
name: KratosSelfService
uses: josxha/Oryon/.github/workflows/docker-build-kratos_self_service.yml@main
needs: check-changes
#if: ${{ needs.check-changes.outputs.kratos-self-service == 'true' }}
secrets: inherit
with:
IMAGE_TAG: latest