-
Notifications
You must be signed in to change notification settings - Fork 29
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
ci: Use Dockerfile for operator when building images for trivy scans
- Loading branch information
1 parent
f4bbc8f
commit f31caf6
Showing
1 changed file
with
11 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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: | ||
|
@@ -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] | ||
|
@@ -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 | ||
|