From 808488fe28ea9262924032979235055404b364b1 Mon Sep 17 00:00:00 2001 From: Frank Denis Date: Fri, 24 Jun 2022 13:35:55 +0200 Subject: [PATCH] Use regular CI script for Docker images --- .github/workflows/anchore-analysis.yml | 30 -------------------------- .github/workflows/docker-image.yml | 18 ++++++++++++++++ 2 files changed, 18 insertions(+), 30 deletions(-) delete mode 100644 .github/workflows/anchore-analysis.yml create mode 100644 .github/workflows/docker-image.yml diff --git a/.github/workflows/anchore-analysis.yml b/.github/workflows/anchore-analysis.yml deleted file mode 100644 index 8b8d83e..0000000 --- a/.github/workflows/anchore-analysis.yml +++ /dev/null @@ -1,30 +0,0 @@ -# This workflow checks out code, performs an Anchore container image -# vulnerability and compliance scan, and integrates the results with -# GitHub Advanced Security code scanning feature. For more information on -# the Anchore scan action usage and parameters, see -# https://github.com/anchore/scan-action. For more information on -# Anchore container image scanning in general, see -# https://docs.anchore.com. - -name: Anchore Container Scan - -on: push - -jobs: - Anchore-Build-Scan: - runs-on: ubuntu-latest - steps: - - name: Set up Docker Buildx - uses: docker/setup-buildx-action@v1 - - - name: build local container - uses: docker/build-push-action@v2 - with: - tags: localbuild/testimage:latest - push: false - load: true - - - name: Scan image - uses: anchore/scan-action@v3 - with: - image: "localbuild/testimage:latest" diff --git a/.github/workflows/docker-image.yml b/.github/workflows/docker-image.yml new file mode 100644 index 0000000..eac633f --- /dev/null +++ b/.github/workflows/docker-image.yml @@ -0,0 +1,18 @@ +name: Docker Image CI + +on: + push: + branches: [ "master" ] + pull_request: + branches: [ "master" ] + +jobs: + + build: + + runs-on: ubuntu-latest + + steps: + - uses: actions/checkout@v3 + - name: Build the Docker image + run: docker build . --file Dockerfile --tag my-image-name:$(date +%s)