wip: 🔕 temporary commit
This commit is contained in:
parent
2a0d771bcc
commit
3cbe16f0e8
30
.github/workflows/tests.yml
vendored
30
.github/workflows/tests.yml
vendored
@ -24,9 +24,39 @@ jobs:
|
|||||||
- {uses: actions/checkout@v4, with: {fetch-depth: 0}}
|
- {uses: actions/checkout@v4, with: {fetch-depth: 0}}
|
||||||
- uses: gacts/gitleaks@v1
|
- uses: gacts/gitleaks@v1
|
||||||
|
|
||||||
|
filter:
|
||||||
|
name: Filter files
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
permissions: {pull-requests: read}
|
||||||
|
outputs:
|
||||||
|
docker: ${{ steps.filter.outputs.docker }}
|
||||||
|
helm: ${{ steps.filter.outputs.helm }}
|
||||||
|
steps:
|
||||||
|
- uses: dorny/paths-filter@v3
|
||||||
|
id: filter
|
||||||
|
with:
|
||||||
|
filters: |
|
||||||
|
docker: [Dockerfile, '*docker*', '*3proxy*']
|
||||||
|
helm: ['deployments/helm/**', '*kube*']
|
||||||
|
|
||||||
|
lint-charts:
|
||||||
|
name: Lint the chart
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
needs: [filter]
|
||||||
|
if: needs.filter.outputs.helm == 'true'
|
||||||
|
defaults: {run: {working-directory: ./deployments/helm}}
|
||||||
|
steps:
|
||||||
|
- uses: actions/checkout@v4
|
||||||
|
- uses: azure/setup-helm@v4
|
||||||
|
- run: helm dependency update .
|
||||||
|
- run: helm template . > /dev/null
|
||||||
|
- run: helm lint --strict .
|
||||||
|
|
||||||
build-image:
|
build-image:
|
||||||
name: Build the docker image
|
name: Build the docker image
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
|
needs: [filter] # since this is the initial step, we can filter out the rest of the jobs right here to skip them
|
||||||
|
if: needs.filter.outputs.docker == 'true'
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v4
|
- uses: actions/checkout@v4
|
||||||
- run: docker build -f ./Dockerfile --tag 3proxy:local .
|
- run: docker build -f ./Dockerfile --tag 3proxy:local .
|
||||||
|
Loading…
x
Reference in New Issue
Block a user