Skip to content

Commit

Permalink
Update
Browse files Browse the repository at this point in the history
  • Loading branch information
SpiritZhou committed Dec 20, 2023
1 parent ff4673a commit d3ef140
Showing 1 changed file with 54 additions and 54 deletions.
108 changes: 54 additions & 54 deletions .github/workflows/main-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ on:
jobs:
build:
name: build
runs-on: ARM64
runs-on: 'ubuntu-latest'
permissions:
contents: read
packages: write
Expand Down Expand Up @@ -50,11 +50,11 @@ jobs:
uses: docker/login-action@v3
with:
# Username used to log in to a Docker registry. If not set then no login will occur
username: ${{ github.repository_owner }}
username: ${{ secrets.TF_AZURE_SP_APP_ID }}
# Password or personal access token used to log in to a Docker registry. If not set then no login will occur
password: ${{ secrets.GHCR_AUTH_PAT }}
password: ${{ secrets.AZURE_SP_KEY }}
# Server address of Docker registry. If not set then will default to Docker Hub
registry: ghcr.io
registry: kedainternaltest.azurecr.io

- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3
Expand All @@ -74,53 +74,53 @@ jobs:
# against the sigstore community Fulcio instance.
run: make sign-images

validate:
needs: build
uses: kedacore/keda/.github/workflows/template-main-e2e-test.yml@main
secrets: inherit

validate-arm64:
needs: build
uses: kedacore/keda/.github/workflows/template-arm64-smoke-tests.yml@main

validate-k8s-versions:
needs: build
uses: kedacore/keda/.github/workflows/template-versions-smoke-tests.yml@main

trivy-scan:
needs: build
uses: kedacore/keda/.github/workflows/template-trivy-scan.yml@main
with:
runs-on: 'ubuntu-latest'
scan-type: 'fs'
format: 'sarif'
exit-code: 0
publish: true

trivy-scan-metrics-server:
needs: build
strategy:
matrix:
runner: [ARM64, ubuntu-latest]
uses: kedacore/keda/.github/workflows/template-trivy-scan.yml@main
with:
runs-on: ${{ matrix.runner }}
scan-type: 'image'
image-ref: ghcr.io/kedacore/keda-metrics-apiserver:main
format: 'sarif'
exit-code: 0
publish: true

trivy-scan-keda:
needs: build
strategy:
matrix:
runner: [ARM64, ubuntu-latest]
uses: kedacore/keda/.github/workflows/template-trivy-scan.yml@main
with:
runs-on: ${{ matrix.runner }}
scan-type: 'image'
image-ref: ghcr.io/kedacore/keda:main
format: 'sarif'
exit-code: 0
publish: true
# validate:
# needs: build
# uses: kedacore/keda/.github/workflows/template-main-e2e-test.yml@main
# secrets: inherit

# validate-arm64:
# needs: build
# uses: kedacore/keda/.github/workflows/template-arm64-smoke-tests.yml@main

# validate-k8s-versions:
# needs: build
# uses: kedacore/keda/.github/workflows/template-versions-smoke-tests.yml@main

# trivy-scan:
# needs: build
# uses: kedacore/keda/.github/workflows/template-trivy-scan.yml@main
# with:
# runs-on: 'ubuntu-latest'
# scan-type: 'fs'
# format: 'sarif'
# exit-code: 0
# publish: true

# trivy-scan-metrics-server:
# needs: build
# strategy:
# matrix:
# runner: [ARM64, ubuntu-latest]
# uses: kedacore/keda/.github/workflows/template-trivy-scan.yml@main
# with:
# runs-on: ${{ matrix.runner }}
# scan-type: 'image'
# image-ref: ghcr.io/kedacore/keda-metrics-apiserver:main
# format: 'sarif'
# exit-code: 0
# publish: true

# trivy-scan-keda:
# needs: build
# strategy:
# matrix:
# runner: [ARM64, ubuntu-latest]
# uses: kedacore/keda/.github/workflows/template-trivy-scan.yml@main
# with:
# runs-on: ${{ matrix.runner }}
# scan-type: 'image'
# image-ref: ghcr.io/kedacore/keda:main
# format: 'sarif'
# exit-code: 0
# publish: true

0 comments on commit d3ef140

Please sign in to comment.