mirror of
https://github.com/fhswf/aki_prj23_transparenzregister.git
synced 2025-04-22 22:12:53 +02:00
Reduced build time (#260)
The building and pushing of artifacts takes to long. With those changes build experimental images aren't pushed anymore. This saves build time and disc space.
This commit is contained in:
parent
aca6648997
commit
77a0faa257
4
.github/dependabot.yml
vendored
4
.github/dependabot.yml
vendored
@ -8,7 +8,7 @@ updates:
|
|||||||
- package-ecosystem: github-actions
|
- package-ecosystem: github-actions
|
||||||
directory: /
|
directory: /
|
||||||
schedule:
|
schedule:
|
||||||
interval: weekly
|
interval: daily
|
||||||
open-pull-requests-limit: 10
|
open-pull-requests-limit: 10
|
||||||
- package-ecosystem: pip # See documentation for possible values
|
- package-ecosystem: pip # See documentation for possible values
|
||||||
directory: / # Location of package manifests
|
directory: / # Location of package manifests
|
||||||
@ -17,4 +17,4 @@ updates:
|
|||||||
open-pull-requests-limit: 5
|
open-pull-requests-limit: 5
|
||||||
ignore:
|
ignore:
|
||||||
- dependency-name: '*'
|
- dependency-name: '*'
|
||||||
update-types: ["version-update:semver-major"]
|
update-types: ['version-update:semver-major']
|
||||||
|
2
.github/workflows/maintenance.yaml
vendored
2
.github/workflows/maintenance.yaml
vendored
@ -2,7 +2,7 @@ name: Auto Maintenance Cycle
|
|||||||
|
|
||||||
on:
|
on:
|
||||||
schedule:
|
schedule:
|
||||||
- cron: 30 7 * * 1
|
- cron: 30 7 * * *
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
delete_all_untagged:
|
delete_all_untagged:
|
||||||
|
13
.github/workflows/test-and-build-action.yaml
vendored
13
.github/workflows/test-and-build-action.yaml
vendored
@ -54,6 +54,7 @@ jobs:
|
|||||||
if-no-files-found: error
|
if-no-files-found: error
|
||||||
|
|
||||||
coverage_pull_request:
|
coverage_pull_request:
|
||||||
|
name: Coverage Report on pull request
|
||||||
if: ${{ github.event_name == 'pull_request' && !startsWith(github.ref, 'refs/heads/dependabot/')}}
|
if: ${{ github.event_name == 'pull_request' && !startsWith(github.ref, 'refs/heads/dependabot/')}}
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
needs: test
|
needs: test
|
||||||
@ -71,6 +72,7 @@ jobs:
|
|||||||
thresholdModified: 0.7
|
thresholdModified: 0.7
|
||||||
|
|
||||||
coverage_report:
|
coverage_report:
|
||||||
|
name: Coverage HTML Report
|
||||||
if: ${{ github.event_name == 'push' }}
|
if: ${{ github.event_name == 'push' }}
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
needs: test
|
needs: test
|
||||||
@ -162,7 +164,6 @@ jobs:
|
|||||||
echo "LATEST=experimental" >> $GITHUB_ENV
|
echo "LATEST=experimental" >> $GITHUB_ENV
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
|
||||||
- run: |
|
- run: |
|
||||||
echo "Print ${{ env.TAG_OR_MAIN }}"
|
echo "Print ${{ env.TAG_OR_MAIN }}"
|
||||||
|
|
||||||
@ -177,6 +178,10 @@ jobs:
|
|||||||
if: ${{ github.event_name == 'pull_request' }}
|
if: ${{ github.event_name == 'pull_request' }}
|
||||||
run: exit 0
|
run: exit 0
|
||||||
|
|
||||||
|
- name: Exit workflow on not main branch
|
||||||
|
if: ${{ github.ref != 'refs/heads/main'}}
|
||||||
|
run: exit 0
|
||||||
|
|
||||||
- name: Login to GitHub Container Registry
|
- name: Login to GitHub Container Registry
|
||||||
uses: docker/login-action@v3
|
uses: docker/login-action@v3
|
||||||
with:
|
with:
|
||||||
@ -189,7 +194,7 @@ jobs:
|
|||||||
with:
|
with:
|
||||||
build-args: |
|
build-args: |
|
||||||
"GIT_HASH=${{github.sha}}"
|
"GIT_HASH=${{github.sha}}"
|
||||||
push: true
|
push: ${{ github.ref == 'refs/heads/main'}}
|
||||||
tags: |
|
tags: |
|
||||||
ghcr.io/${{ github.repository_owner }}/${{ github.event.repository.name }}/ingest:${{ env.TAG_OR_MAIN }}
|
ghcr.io/${{ github.repository_owner }}/${{ github.event.repository.name }}/ingest:${{ env.TAG_OR_MAIN }}
|
||||||
ghcr.io/${{ github.repository_owner }}/${{ github.event.repository.name }}/ingest:${{ env.LATEST }}
|
ghcr.io/${{ github.repository_owner }}/${{ github.event.repository.name }}/ingest:${{ env.LATEST }}
|
||||||
@ -201,7 +206,7 @@ jobs:
|
|||||||
with:
|
with:
|
||||||
build-args: |
|
build-args: |
|
||||||
"GIT_HASH=${{github.sha}}"
|
"GIT_HASH=${{github.sha}}"
|
||||||
push: true
|
push: ${{ github.ref == 'refs/heads/main'}}
|
||||||
tags: |
|
tags: |
|
||||||
ghcr.io/${{ github.repository_owner }}/${{ github.event.repository.name }}/data-transformation:${{ env.TAG_OR_MAIN }}
|
ghcr.io/${{ github.repository_owner }}/${{ github.event.repository.name }}/data-transformation:${{ env.TAG_OR_MAIN }}
|
||||||
ghcr.io/${{ github.repository_owner }}/${{ github.event.repository.name }}/data-transformation:${{ env.LATEST }}
|
ghcr.io/${{ github.repository_owner }}/${{ github.event.repository.name }}/data-transformation:${{ env.LATEST }}
|
||||||
@ -213,7 +218,7 @@ jobs:
|
|||||||
with:
|
with:
|
||||||
build-args: |
|
build-args: |
|
||||||
"GIT_HASH=${{github.sha}}"
|
"GIT_HASH=${{github.sha}}"
|
||||||
push: true
|
push: ${{ github.ref == 'refs/heads/main'}}
|
||||||
tags: |
|
tags: |
|
||||||
ghcr.io/${{ github.repository_owner }}/${{ github.event.repository.name }}/web-server:${{ env.TAG_OR_MAIN }}
|
ghcr.io/${{ github.repository_owner }}/${{ github.event.repository.name }}/web-server:${{ env.TAG_OR_MAIN }}
|
||||||
ghcr.io/${{ github.repository_owner }}/${{ github.event.repository.name }}/web-server:${{ env.LATEST }}
|
ghcr.io/${{ github.repository_owner }}/${{ github.event.repository.name }}/web-server:${{ env.LATEST }}
|
||||||
|
@ -49,6 +49,7 @@ repos:
|
|||||||
args: [--autofix]
|
args: [--autofix]
|
||||||
- id: pretty-format-yaml
|
- id: pretty-format-yaml
|
||||||
args: [--autofix]
|
args: [--autofix]
|
||||||
|
exclude: (dependabot.yml$)
|
||||||
- id: pretty-format-toml
|
- id: pretty-format-toml
|
||||||
args: [--autofix]
|
args: [--autofix]
|
||||||
exclude: (^poetry.lock$)
|
exclude: (^poetry.lock$)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user