Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/workflows/03-build-secure.yml
Original file line number Diff line number Diff line change
Expand Up @@ -103,13 +103,13 @@
uses: actions/cache@v4
with:
path: /tmp/.buildx-cache
key: ${{ runner.os }}-buildx-${{ matrix.service }}-${{ hashFiles(format('{0}/poetry.lock', matrix.context), format('{0}/package-lock.json', matrix.context)) }}

Check warning on line 106 in .github/workflows/03-build-secure.yml

View workflow job for this annotation

GitHub Actions / YAML Lint

106:121 [line-length] line too long (169 > 120 characters)
restore-keys: |
${{ runner.os }}-buildx-${{ matrix.service }}-
${{ runner.os }}-buildx-

- name: 🏗️ Build Docker Image
uses: docker/build-push-action@v5
uses: docker/build-push-action@v6
with:
context: ${{ matrix.context }}
file: ${{ matrix.dockerfile }}
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/deploy_code_engine.yml
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ jobs:
password: ${{ secrets.IBM_CLOUD_API_KEY }}

- name: Build and push Docker image
uses: docker/build-push-action@v5
uses: docker/build-push-action@v6
with:
context: .
file: ./Dockerfile.codeengine
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/deploy_complete_app.yml
Original file line number Diff line number Diff line change
Expand Up @@ -159,7 +159,7 @@
password: ${{ secrets.IBM_CLOUD_API_KEY }}

- name: Build and push backend Docker image
uses: docker/build-push-action@v5
uses: docker/build-push-action@v6
with:
context: .
file: ./Dockerfile.codeengine
Expand Down Expand Up @@ -191,13 +191,13 @@
password: ${{ secrets.IBM_CLOUD_API_KEY }}

- name: Build and push frontend Docker image
uses: docker/build-push-action@v5
uses: docker/build-push-action@v6
with:
context: ./frontend
file: ./frontend/Dockerfile.frontend
platforms: linux/amd64
push: true
tags: ${{ env.IBM_CLOUD_REGION }}.icr.io/${{ env.CR_NAMESPACE }}/${{ env.FRONTEND_APP_NAME }}:${{ github.sha }}

Check warning on line 200 in .github/workflows/deploy_complete_app.yml

View workflow job for this annotation

GitHub Actions / YAML Lint

200:121 [line-length] line too long (121 > 120 characters)
cache-from: type=gha
cache-to: type=gha,mode=max

Expand All @@ -215,7 +215,7 @@
- name: Run Trivy vulnerability scanner (Backend)
uses: aquasecurity/trivy-action@master
with:
image-ref: ${{ env.IBM_CLOUD_REGION }}.icr.io/${{ env.CR_NAMESPACE }}/${{ env.BACKEND_APP_NAME }}:${{ github.sha }}

Check warning on line 218 in .github/workflows/deploy_complete_app.yml

View workflow job for this annotation

GitHub Actions / YAML Lint

218:121 [line-length] line too long (125 > 120 characters)
format: 'sarif'
output: 'trivy-backend-results.sarif'

Expand All @@ -228,7 +228,7 @@
- name: Run Trivy vulnerability scanner (Backend - Table)
uses: aquasecurity/trivy-action@master
with:
image-ref: ${{ env.IBM_CLOUD_REGION }}.icr.io/${{ env.CR_NAMESPACE }}/${{ env.BACKEND_APP_NAME }}:${{ github.sha }}

Check warning on line 231 in .github/workflows/deploy_complete_app.yml

View workflow job for this annotation

GitHub Actions / YAML Lint

231:121 [line-length] line too long (125 > 120 characters)
format: 'table'
exit-code: '1'
severity: 'CRITICAL,HIGH'
Expand All @@ -247,7 +247,7 @@
- name: Run Trivy vulnerability scanner (Frontend)
uses: aquasecurity/trivy-action@master
with:
image-ref: ${{ env.IBM_CLOUD_REGION }}.icr.io/${{ env.CR_NAMESPACE }}/${{ env.FRONTEND_APP_NAME }}:${{ github.sha }}

Check warning on line 250 in .github/workflows/deploy_complete_app.yml

View workflow job for this annotation

GitHub Actions / YAML Lint

250:121 [line-length] line too long (126 > 120 characters)
format: 'sarif'
output: 'trivy-frontend-results.sarif'

Expand All @@ -260,14 +260,14 @@
- name: Run Trivy vulnerability scanner (Frontend - Table)
uses: aquasecurity/trivy-action@master
with:
image-ref: ${{ env.IBM_CLOUD_REGION }}.icr.io/${{ env.CR_NAMESPACE }}/${{ env.FRONTEND_APP_NAME }}:${{ github.sha }}

Check warning on line 263 in .github/workflows/deploy_complete_app.yml

View workflow job for this annotation

GitHub Actions / YAML Lint

263:121 [line-length] line too long (126 > 120 characters)
format: 'table'
exit-code: '1'
severity: 'CRITICAL,HIGH'

deploy-backend:
needs: [build-and-push-backend, security-scan-backend]
if: always() && (needs.security-scan-backend.result == 'success' || needs.security-scan-backend.result == 'skipped') && (github.event_name == 'workflow_dispatch' || github.event_name == 'push' || (github.event_name == 'schedule' && inputs.deploy_after_build == true))

Check warning on line 270 in .github/workflows/deploy_complete_app.yml

View workflow job for this annotation

GitHub Actions / YAML Lint

270:121 [line-length] line too long (271 > 120 characters)
runs-on: ubuntu-latest
steps:
- name: Check out code
Expand All @@ -281,7 +281,7 @@
- name: Deploy Backend to Code Engine
env:
IBM_CLOUD_API_KEY: ${{ secrets.IBM_CLOUD_API_KEY }}
IMAGE_URL: ${{ env.IBM_CLOUD_REGION }}.icr.io/${{ env.CR_NAMESPACE }}/${{ env.BACKEND_APP_NAME }}:${{ github.sha }}

Check warning on line 284 in .github/workflows/deploy_complete_app.yml

View workflow job for this annotation

GitHub Actions / YAML Lint

284:121 [line-length] line too long (125 > 120 characters)
APP_NAME: ${{ env.BACKEND_APP_NAME }}
IBM_CLOUD_REGION: ${{ env.IBM_CLOUD_REGION }}
IBM_CLOUD_RESOURCE_GROUP: ${{ vars.IBM_CLOUD_RESOURCE_GROUP || 'rag-modulo-deployment' }}
Expand Down Expand Up @@ -323,7 +323,7 @@

deploy-frontend:
needs: [build-and-push-frontend, security-scan-frontend]
if: always() && (needs.security-scan-frontend.result == 'success' || needs.security-scan-frontend.result == 'skipped') && (github.event_name == 'workflow_dispatch' || github.event_name == 'push' || (github.event_name == 'schedule' && inputs.deploy_after_build == true))

Check warning on line 326 in .github/workflows/deploy_complete_app.yml

View workflow job for this annotation

GitHub Actions / YAML Lint

326:121 [line-length] line too long (273 > 120 characters)
runs-on: ubuntu-latest
steps:
- name: Check out code
Expand All @@ -337,7 +337,7 @@
- name: Deploy Frontend to Code Engine
env:
IBM_CLOUD_API_KEY: ${{ secrets.IBM_CLOUD_API_KEY }}
IMAGE_URL: ${{ env.IBM_CLOUD_REGION }}.icr.io/${{ env.CR_NAMESPACE }}/${{ env.FRONTEND_APP_NAME }}:${{ github.sha }}

Check warning on line 340 in .github/workflows/deploy_complete_app.yml

View workflow job for this annotation

GitHub Actions / YAML Lint

340:121 [line-length] line too long (126 > 120 characters)
APP_NAME: ${{ env.FRONTEND_APP_NAME }}
IBM_CLOUD_REGION: ${{ env.IBM_CLOUD_REGION }}
IBM_CLOUD_RESOURCE_GROUP: ${{ vars.IBM_CLOUD_RESOURCE_GROUP || 'rag-modulo-deployment' }}
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ jobs:
password: ${{ secrets.GITHUB_TOKEN }}

- name: Build and push frontend
uses: docker/build-push-action@v5
uses: docker/build-push-action@v6
with:
context: ./frontend
file: ./frontend/Dockerfile.frontend
Expand All @@ -46,7 +46,7 @@ jobs:
cache-to: type=gha,mode=max

- name: Build and push backend
uses: docker/build-push-action@v5
uses: docker/build-push-action@v6
with:
context: ./backend
file: ./backend/Dockerfile.backend
Expand Down
Loading