Skip to content

Commit 86bf8fe

Browse files
fix CI cache build fail
1 parent 3d26521 commit 86bf8fe

File tree

2 files changed

+11
-7
lines changed

2 files changed

+11
-7
lines changed

.github/workflows/backend-ci.yml

Lines changed: 11 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -2,11 +2,11 @@ name: Backend Development Pipeline
22

33
on:
44
push:
5-
branches: [ main ]
5+
branches: [ main, fix/ci-fail ]
66
paths:
77
- 'backend/**'
88
pull_request:
9-
branches: [ main ]
9+
branches: [ main, fix/ci-fail ]
1010
paths:
1111
- 'backend/**'
1212

@@ -67,16 +67,20 @@ jobs:
6767

6868
# 8. Log in to ghcr.io
6969
- name: Log in to the Container registry
70-
if: ${{ github.ref == 'refs/heads/main' || github.ref == 'refs/heads/dev' }}
70+
if: ${{ github.ref == 'refs/heads/main' || github.ref == 'refs/heads/fix/ci-fail' }}
7171
uses: docker/login-action@v3
7272
with:
7373
registry: ghcr.io
7474
username: ${{ github.actor }}
7575
password: ${{ secrets.GITHUB_TOKEN }}
7676

77-
# 9. Build and push Docker image (with cache)
77+
# 9. Set up Docker Buildx
78+
- name: Set up Docker Buildx
79+
uses: docker/setup-buildx-action@v3
80+
81+
# 10. Build and push Docker image (with cache)
7882
- name: Build and push Docker image
79-
if: ${{ github.ref == 'refs/heads/main' || github.ref == 'refs/heads/dev' }}
83+
if: ${{ github.ref == 'refs/heads/main' || github.ref == 'refs/heads/fix/ci-fail' }}
8084
uses: docker/build-push-action@v6
8185
with:
8286
context: ./backend
@@ -87,7 +91,7 @@ jobs:
8791

8892
# 10. Scan docker image with Trivy
8993
- name: "Scan Docker Image with Trivy"
90-
if: ${{ github.ref == 'refs/heads/main' || github.ref == 'refs/heads/dev' }}
94+
if: ${{ github.ref == 'refs/heads/main' || github.ref == 'refs/heads/fix/ci-fail' }}
9195
uses: aquasecurity/trivy-action@master
9296
with:
9397
image-ref: 'ghcr.io/nashtech-garage/smart-taskhub-be:latest'
@@ -98,7 +102,7 @@ jobs:
98102

99103
# 11. Upload Trivy scan results to GitHub Security tab
100104
- name: "Upload Trivy scan results to GitHub Security tab"
101-
if: ${{ github.ref == 'refs/heads/main' || github.ref == 'refs/heads/dev' }}
105+
if: ${{ github.ref == 'refs/heads/main' || github.ref == 'refs/heads/fix/ci-fail' }}
102106
uses: github/codeql-action/upload-sarif@v3
103107
with:
104108
sarif_file: trivy-results.sarif

backend/conf/evolutions/default/7_create_user_profile_table.sql renamed to backend/conf/evolutions/default/7.sql

File renamed without changes.

0 commit comments

Comments
 (0)