Skip to content

chore: Update Docker image repository in Helm values.yaml #142

chore: Update Docker image repository in Helm values.yaml

chore: Update Docker image repository in Helm values.yaml #142

Workflow file for this run

name: Test Gradle project
on: [push, pull_request]
jobs:
lint-gradle-project:
runs-on: ubuntu-latest
name: Lint
steps:
- name: Checkout project source
uses: actions/checkout@v4
- name: Set Java
uses: actions/setup-java@v4
with:
java-version: '17'
distribution: 'temurin'
- name: Set up Gradle
uses: gradle/actions/setup-gradle@v3
- name: Run lint
run: ./gradlew lint
build-and-tests-api:
runs-on: ubuntu-latest
name: Build and test
needs: lint-gradle-project
steps:
- name: Checkout project source
uses: actions/checkout@v4
- name: Set Java
uses: actions/setup-java@v4
with:
java-version: 17
distribution: 'adopt'
- name: Set up Gradle
uses: gradle/actions/setup-gradle@v3
- name: Run build without tests
run: ./gradlew assemble
- name: Grant execute permission
run: chmod +x gradlew
- name: Run tests
run: ./gradlew test -Dspring.profiles.active=test
build-docker:
runs-on: ubuntu-latest
name: Build Docker image and scan for vulnerabilities
steps:

Check failure on line 55 in .github/workflows/main.yml

View workflow run for this annotation

GitHub Actions / .github/workflows/main.yml

Invalid workflow file

You have an error in your yaml syntax on line 55
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3
- name: Login to Docker Hub
uses: docker/login-action@v3
with:
username: ${{ vars.DOCKER_USER }}
password: ${{ secrets.DOCKER_SECRET }}
- name: Build
uses: docker/build-push-action@v5
with:
push: flase
tags: ${{ vars.DOCKER_IMAGE_NAME }}:latest
- name: Download Trivy
run: curl https://raw.githubusercontent.com/aquasecurity/trivy/7735ec432a83d5446d13a593ab3b27dd02649ca1/contrib/markdown.tpl -o markdown.tpl
- name: Run Trivy vulnerability scanner
uses: aquasecurity/[email protected]
with:
image-ref: ${{ vars.DOCKER_IMAGE_NAME }}:latest
format: 'template'
template: '@markdown.tpl'
output: trivy.md
exit-code: '1'
ignore-unfixed: true
vuln-type: 'os,library'
severity: 'CRITICAL,HIGH'
- run: cat trivy.md >> $GITHUB_STEP_SUMMARY
if: always()