mirror of
https://github.com/Redume/Kekkai.git
synced 2025-02-23 12:43:12 +03:00
chore: Added path filter for Github Actions
Some checks failed
Create and publish a Docker image / check-paths (push) Has been cancelled
Create and publish a Docker image / build-and-push-server (push) Has been cancelled
Create and publish a Docker image / build-and-push-chart (push) Has been cancelled
Create and publish a Docker image / build-and-push-cr (push) Has been cancelled
Deploy docs / check-paths (push) Has been cancelled
Deploy docs / deploy (push) Has been cancelled
Some checks failed
Create and publish a Docker image / check-paths (push) Has been cancelled
Create and publish a Docker image / build-and-push-server (push) Has been cancelled
Create and publish a Docker image / build-and-push-chart (push) Has been cancelled
Create and publish a Docker image / build-and-push-cr (push) Has been cancelled
Deploy docs / check-paths (push) Has been cancelled
Deploy docs / deploy (push) Has been cancelled
This commit is contained in:
parent
38d1ace398
commit
eab1a0d2fc
2 changed files with 47 additions and 11 deletions
29
.github/workflows/docker.yml
vendored
29
.github/workflows/docker.yml
vendored
|
@ -13,12 +13,32 @@ env:
|
|||
IMAGE_NAME: ${{ github.repository }}
|
||||
|
||||
jobs:
|
||||
check-paths:
|
||||
runs-on: ubuntu-latest
|
||||
outputs:
|
||||
server: ${{ steps.filter.outputs.server }}
|
||||
chart: ${{ steps.filter.outputs.chart }}
|
||||
cr: ${{ steps.filter.outputs.cr }}
|
||||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
- name: Filter paths
|
||||
id: filter
|
||||
uses: dorny/paths-filter@v3
|
||||
with:
|
||||
filters: |
|
||||
server:
|
||||
- 'server/**'
|
||||
chart:
|
||||
- 'chart/**'
|
||||
cr:
|
||||
- 'collect-currency/**'
|
||||
|
||||
build-and-push-server:
|
||||
if: ${{ needs.check-paths.outputs.server == 'true' }}
|
||||
runs-on: ubuntu-latest
|
||||
permissions:
|
||||
contents: read
|
||||
packages: write
|
||||
|
||||
steps:
|
||||
- name: Checkout repository
|
||||
uses: actions/checkout@v4
|
||||
|
@ -50,11 +70,11 @@ jobs:
|
|||
platforms: linux/amd64,linux/arm64
|
||||
|
||||
build-and-push-chart:
|
||||
if: ${{ needs.check-paths.outputs.chart == 'true' }}
|
||||
runs-on: ubuntu-latest
|
||||
permissions:
|
||||
contents: read
|
||||
packages: write
|
||||
|
||||
steps:
|
||||
- name: Checkout repository
|
||||
uses: actions/checkout@v4
|
||||
|
@ -85,13 +105,12 @@ jobs:
|
|||
labels: ${{ steps.meta.outputs.labels }}
|
||||
platforms: linux/amd64,linux/arm64
|
||||
|
||||
|
||||
build-and-push-CR:
|
||||
build-and-push-cr:
|
||||
if: ${{ needs.check-paths.outputs.cr == 'true' }}
|
||||
runs-on: ubuntu-latest
|
||||
permissions:
|
||||
contents: read
|
||||
packages: write
|
||||
|
||||
steps:
|
||||
- name: Checkout repository
|
||||
uses: actions/checkout@v4
|
||||
|
|
19
.github/workflows/documentation.yml
vendored
19
.github/workflows/documentation.yml
vendored
|
@ -1,13 +1,30 @@
|
|||
name: Deploy docs
|
||||
|
||||
on:
|
||||
push:
|
||||
branches:
|
||||
- master
|
||||
- main
|
||||
|
||||
permissions:
|
||||
contents: write
|
||||
|
||||
jobs:
|
||||
check-paths:
|
||||
runs-on: ubuntu-latest
|
||||
outputs:
|
||||
docs: ${{ steps.filter.outputs.docs }}
|
||||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
- name: Filter paths
|
||||
id: filter
|
||||
uses: dorny/paths-filter@v3
|
||||
with:
|
||||
filters: |
|
||||
docs:
|
||||
- 'docs/**'
|
||||
|
||||
deploy:
|
||||
if: ${{ needs.check-paths.outputs.docs == 'true' }}
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
|
|
Loading…
Add table
Reference in a new issue