From 94547891cddf26914aa156cd652cf21125f4e09e Mon Sep 17 00:00:00 2001 From: bio-boris Date: Thu, 7 Nov 2024 14:02:26 -0600 Subject: [PATCH] Update check_build.yml --- .github/workflows/check_build.yml | 19 +++++++++++++------ 1 file changed, 13 insertions(+), 6 deletions(-) diff --git a/.github/workflows/check_build.yml b/.github/workflows/check_build.yml index f4c0bbcb..680397ed 100644 --- a/.github/workflows/check_build.yml +++ b/.github/workflows/check_build.yml @@ -6,24 +6,31 @@ on: jobs: docker: runs-on: ubuntu-latest - steps: + services: + registry: + image: registry:2 + ports: + - 5000:5000 - name: Set up QEMU uses: docker/setup-qemu-action@v3 - name: Set up Docker Buildx uses: docker/setup-buildx-action@v3 - - - name: Build + + - + name: Build and Push to Local Registry uses: docker/build-push-action@v6 with: - push: false - tags: 'docker.io/kbase/ee2:${{ github.sha }}' + push: true + tags: localhost:5000/ee2/test:latest + + - name: Run Trivy vulnerability scanner uses: aquasecurity/trivy-action@0.28.0 with: - image-ref: 'docker.io/kbase/ee2:${{ github.sha }}' + image-ref: 'localhost:5000/ee2/test:latest' format: 'table' exit-code: '1' ignore-unfixed: true