fix(ci): drop flaky GHA cache and merge image-scan into build
frontend-ci / secrets-scan (push) Successful in 4s
frontend-ci / sast (push) Successful in 8s
frontend-ci / fs-scan (push) Successful in 11s
frontend-ci / typecheck (push) Successful in 15s
frontend-ci / lint (push) Successful in 16s
frontend-ci / build (push) Failing after 38s
frontend-ci / push (push) Has been skipped
frontend-ci / secrets-scan (push) Successful in 4s
frontend-ci / sast (push) Successful in 8s
frontend-ci / fs-scan (push) Successful in 11s
frontend-ci / typecheck (push) Successful in 15s
frontend-ci / lint (push) Successful in 16s
frontend-ci / build (push) Failing after 38s
frontend-ci / push (push) Has been skipped
Mirrors the backend fix. The Gitea runner times out reaching the GHA artifact cache backend during cache-to export, so drop type=gha cache-from/cache-to entirely and fold trivy image scan into the build job to avoid a wasted rebuild. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
This commit is contained in:
+1
-19
@@ -78,23 +78,6 @@ jobs:
|
||||
target: production
|
||||
tags: movieloop-frontend:ci-${{ github.sha }}
|
||||
load: true
|
||||
cache-from: type=gha
|
||||
cache-to: type=gha,mode=max
|
||||
|
||||
image-scan:
|
||||
runs-on: ubuntu-latest
|
||||
needs: [build]
|
||||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
- uses: docker/setup-buildx-action@v3
|
||||
- uses: docker/build-push-action@v5
|
||||
with:
|
||||
context: .
|
||||
file: Dockerfile
|
||||
target: production
|
||||
tags: movieloop-frontend:ci-${{ github.sha }}
|
||||
load: true
|
||||
cache-from: type=gha
|
||||
- name: Install and run Trivy (image)
|
||||
run: |
|
||||
TRIVY_VERSION=0.70.0
|
||||
@@ -105,7 +88,7 @@ jobs:
|
||||
|
||||
push:
|
||||
runs-on: ubuntu-latest
|
||||
needs: [build, image-scan, secrets-scan, sast, fs-scan]
|
||||
needs: [build, secrets-scan, sast, fs-scan]
|
||||
if: github.ref == 'refs/heads/main' || startsWith(github.ref, 'refs/tags/v')
|
||||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
@@ -132,4 +115,3 @@ jobs:
|
||||
target: production
|
||||
push: true
|
||||
tags: ${{ steps.meta.outputs.tags }}
|
||||
cache-from: type=gha
|
||||
|
||||
Reference in New Issue
Block a user