Skip to content

Commit

Permalink
ci: Use Dockerfile for operator when building images for trivy scans
Browse files Browse the repository at this point in the history
  • Loading branch information
yiannistri committed Sep 10, 2024
1 parent f4bbc8f commit f31caf6
Showing 1 changed file with 11 additions and 2 deletions.
13 changes: 11 additions & 2 deletions .github/workflows/scan.yaml
Original file line number Diff line number Diff line change
@@ -1,9 +1,11 @@
name: Scan
on:
pull_request:
branches:
- release-v2.9
push:
branches:
- main
- release-v2.9
tags:
- "v*"
jobs:
Expand All @@ -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/[email protected]
Expand All @@ -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
Expand Down

0 comments on commit f31caf6

Please sign in to comment.