From 99666da1912cfd526e929162eae87dc0ef4bac7c Mon Sep 17 00:00:00 2001 From: Barry Botha Date: Sat, 24 Feb 2024 12:53:56 +0200 Subject: [PATCH] initial workflow --- .github/workflows/main.yml | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) create mode 100644 .github/workflows/main.yml diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml new file mode 100644 index 0000000..f5f6008 --- /dev/null +++ b/.github/workflows/main.yml @@ -0,0 +1,25 @@ +name: build-scan +on: + push: + branches: + - main + - develop + - devops-update + +permissions: + contents: read + packages: write + security-events: write + +jobs: + build: + uses: ablockofficial/workflows/.github/workflows/build.yml@main + with: + REGISTRY: ${{ vars.REGISTRY }} + REPOSITORY: ${{ vars.REPOSITORY }} + scan-image: + uses: ablockofficial/workflows/.github/workflows/scan-image.yml@main + secrets: inherit + needs: build + with: + IMAGE: ${{ vars.REGISTRY }}/${{ vars.REPOSITORY }}:${{ github.sha }} \ No newline at end of file