Compare commits

...

3 Commits

Author SHA1 Message Date
4688d023a0 Remove old grype version within image scan.
All checks were successful
Build ASU website image / Build-and-release-image (push) Successful in 59s
2025-09-16 10:27:15 +00:00
be0bf9d194 Use network mode host to build image.
Some checks failed
Build ASU website image / Build-and-release-image (push) Failing after 51s
2025-05-06 10:11:07 +00:00
8708923cc4 Schedule to 1am and use new build-push action.
All checks were successful
Build ASU website image / Build-and-release-image (push) Successful in 1m0s
2025-04-30 08:03:54 +00:00

View File

@@ -5,7 +5,7 @@ on:
branches: [ master ]
schedule:
# Run every Sunday at midnight
- cron: '0 0 * * 0'
- cron: '1 0 * * 0'
env:
IMAGE: /arbeitsschutz-ulm/website
@@ -21,6 +21,9 @@ jobs:
steps:
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v2
with:
buildkitd-flags: '--allow-insecure-entitlement network.host'
driver-opts: network=host
- name: Login to Docker Hub
uses: docker/login-action@v3
@@ -49,10 +52,12 @@ jobs:
images: ${{ secrets.REGISTRY_URL }}${{ env.IMAGE }}
- name: Build and push Docker image
uses: docker/build-push-action@v4
uses: docker/build-push-action@v6
env:
ACTIONS_RUNTIME_TOKEN: ''
with:
allow: network.host
network: host
tags: ${{ vars.LOCAL_REGISTRY_URL }}${{ env.IMAGE }}:latest
push: true
@@ -66,7 +71,6 @@ jobs:
severity-cutoff: critical
registry-username: ${{ vars.LOCAL_REGISTRY_USER }}
registry-password: ${{ vars.LOCAL_REGISTRY_PASS }}
grype-version: 'v0.90.0'
- name: Inspect file
run: cat ${{ steps.scan.outputs.table }}