Fix test runner

This commit is contained in:
Greyscale 2024-05-19 04:32:52 +02:00
parent f37f710bdf
commit 4e4615c87c
No known key found for this signature in database
GPG key ID: 74BAFF55434DA4B2
3 changed files with 7 additions and 16 deletions

View file

@ -26,6 +26,9 @@ jobs:
dry-run: true
prune-tags-regexes: |
^build-${{ github.sha }}$
keep-tags-regexes: |
^v
^latest$
cleanup-untagged-images:
name: Delete untagged images
runs-on: ubuntu-latest

View file

@ -20,11 +20,7 @@ jobs:
name: Run Install Report
runs-on: ubuntu-latest
steps:
- uses: docker/login-action@v3
with:
registry: ghcr.io
username: ${{ github.repository_owner }}
password: ${{ secrets.GITHUB_TOKEN }}
- run: docker login ghcr.io -u ${{ github.repository_owner }} -p ${{ secrets.GITHUB_TOKEN }}
- name: "Pull Candidate Image"
run: docker pull ${{ env.CANDIDATE_IMAGE }}
- name: "Run Install Report"
@ -33,11 +29,7 @@ jobs:
name: Run Dive
runs-on: ubuntu-latest
steps:
- uses: docker/login-action@v3
with:
registry: ghcr.io
username: ${{ github.repository_owner }}
password: ${{ secrets.GITHUB_TOKEN }}
- run: docker login ghcr.io -u ${{ github.repository_owner }} -p ${{ secrets.GITHUB_TOKEN }}
- name: "Pull Candidate Image"
run: docker pull ${{ env.CANDIDATE_IMAGE }}
- name: "Generate Dive Config"
@ -58,11 +50,7 @@ jobs:
name: Run Trivy
runs-on: ubuntu-latest
steps:
- uses: docker/login-action@v3
with:
registry: ghcr.io
username: ${{ github.repository_owner }}
password: ${{ secrets.GITHUB_TOKEN }}
- run: docker login ghcr.io -u ${{ github.repository_owner }} -p ${{ secrets.GITHUB_TOKEN }}
- name: "Pull Candidate Image"
run: docker pull ${{ env.CANDIDATE_IMAGE }}
# Inspect the container for security vulnerabilities

View file

@ -43,7 +43,7 @@ jobs:
BUILD_DATE=${{ env.ATOM }}
platforms: ${{ github.actor != 'nektos/act' && env.PLATFORMS || 'linux/amd64' }}
pull: true
push: false
push: true
tags: |
${{ env.TAG_IMAGE_GHCR }}
${{ env.TAG_IMAGE_DOCKER }}