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:
Philipp Horstenkamp 2023-10-23 19:43:53 +02:00 committed by GitHub
parent aca6648997
commit 77a0faa257
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with 13 additions and 7 deletions

View File

@ -8,7 +8,7 @@ updates:
- package-ecosystem: github-actions
directory: /
schedule:
interval: weekly
interval: daily
open-pull-requests-limit: 10
- package-ecosystem: pip # See documentation for possible values
directory: / # Location of package manifests
@ -17,4 +17,4 @@ updates:
open-pull-requests-limit: 5
ignore:
- dependency-name: '*'
update-types: ["version-update:semver-major"]
update-types: ['version-update:semver-major']

View File

@ -2,7 +2,7 @@ name: Auto Maintenance Cycle
on:
schedule:
- cron: 30 7 * * 1
- cron: 30 7 * * *
jobs:
delete_all_untagged:

View File

@ -54,6 +54,7 @@ jobs:
if-no-files-found: error
coverage_pull_request:
name: Coverage Report on pull request
if: ${{ github.event_name == 'pull_request' && !startsWith(github.ref, 'refs/heads/dependabot/')}}
runs-on: ubuntu-latest
needs: test
@ -71,6 +72,7 @@ jobs:
thresholdModified: 0.7
coverage_report:
name: Coverage HTML Report
if: ${{ github.event_name == 'push' }}
runs-on: ubuntu-latest
needs: test
@ -162,7 +164,6 @@ jobs:
echo "LATEST=experimental" >> $GITHUB_ENV
fi
- run: |
echo "Print ${{ env.TAG_OR_MAIN }}"
@ -177,6 +178,10 @@ jobs:
if: ${{ github.event_name == 'pull_request' }}
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
uses: docker/login-action@v3
with:
@ -189,7 +194,7 @@ jobs:
with:
build-args: |
"GIT_HASH=${{github.sha}}"
push: true
push: ${{ github.ref == 'refs/heads/main'}}
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.LATEST }}
@ -201,7 +206,7 @@ jobs:
with:
build-args: |
"GIT_HASH=${{github.sha}}"
push: true
push: ${{ github.ref == 'refs/heads/main'}}
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.LATEST }}
@ -213,7 +218,7 @@ jobs:
with:
build-args: |
"GIT_HASH=${{github.sha}}"
push: true
push: ${{ github.ref == 'refs/heads/main'}}
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.LATEST }}

View File

@ -49,6 +49,7 @@ repos:
args: [--autofix]
- id: pretty-format-yaml
args: [--autofix]
exclude: (dependabot.yml$)
- id: pretty-format-toml
args: [--autofix]
exclude: (^poetry.lock$)