Skip to content

Commit

Permalink
Fix security audit
Browse files Browse the repository at this point in the history
  • Loading branch information
MarekSuchanek committed Jan 7, 2024
1 parent aefc57b commit 2d9d039
Showing 1 changed file with 10 additions and 2 deletions.
12 changes: 10 additions & 2 deletions .github/workflows/security.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,12 @@ jobs:
name: Grype
runs-on: ubuntu-latest

services:
registry:
image: registry:2
ports:
- 5000:5000

strategy:
fail-fast: false
matrix:
Expand All @@ -19,7 +25,7 @@ jobs:
- 3.11-docworker

env:
IMAGE_BASE_NAME: 'python-base'
IMAGE_BASE_NAME: 'localhost:5000/test/python-base'
DOCKER_META_CONTEXT: '.'
DOCKER_META_FILE: './${{ matrix.tag }}/Dockerfile'
DOCKER_META_PLATFORMS: 'linux/amd64,linux/arm64'
Expand All @@ -44,6 +50,8 @@ jobs:
- name: Set up Docker Buildx
id: buildx
uses: docker/setup-buildx-action@v2
with:
driver-opts: network=host

# TEST DOCKER IMAGE BUILD
- name: Docker meta [test]
Expand All @@ -61,7 +69,7 @@ jobs:
context: ${{ env.DOCKER_META_CONTEXT }}
file: ${{ env.DOCKER_META_FILE }}
platforms: ${{ env.DOCKER_META_PLATFORMS }}
push: false
push: true
tags: ${{ steps.meta-test.outputs.tags }}
labels: ${{ steps.meta-test.outputs.labels }}
cache-from: type=gha
Expand Down

0 comments on commit 2d9d039

Please sign in to comment.