From f31caf606dd87fe1111be0574491c8c719bd6a6f Mon Sep 17 00:00:00 2001 From: yiannistri <8741709+yiannistri@users.noreply.github.com> Date: Tue, 10 Sep 2024 13:05:23 +0100 Subject: [PATCH] ci: Use Dockerfile for operator when building images for trivy scans --- .github/workflows/scan.yaml | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) diff --git a/.github/workflows/scan.yaml b/.github/workflows/scan.yaml index ea00bf18..5f1ef077 100644 --- a/.github/workflows/scan.yaml +++ b/.github/workflows/scan.yaml @@ -1,9 +1,11 @@ name: Scan on: pull_request: + branches: + - release-v2.9 push: branches: - - main + - release-v2.9 tags: - "v*" jobs: @@ -14,6 +16,13 @@ jobs: uses: actions/checkout@v4 with: fetch-depth: 0 + - name: Set up Go + uses: actions/setup-go@v5 + with: + go-version-file: 'go.mod' + check-latest: true + - name: Build operator + run: make operator - name: Set up Docker Buildx id: buildx uses: docker/setup-buildx-action@v3.0.0 @@ -24,7 +33,7 @@ jobs: tags: ghcr.io/rancher/aks-operator:${{ github.sha }} load: true push: false - file: test/e2e/Dockerfile.e2e + file: package/Dockerfile build-args: | TAG=${{ github.sha }} REPO=ghcr.io/rancher/aks-operator