Files
canada-kaktus/.gitea/workflows/pr.yaml
Tobias Trabelsi d57cf412df
Some checks failed
PR Build / Test (pull_request) Failing after 3m12s
PR Build / Build_Image (pull_request) Successful in 2m33s
fix(ci): minimal trivy fs scan
2025-10-06 09:54:18 +02:00

40 lines
1.1 KiB
YAML

name: PR Build
run-name: ${{ gitea.actor }} is testing out Gitea Actions 🚀
on: [pull_request]
jobs:
Test:
runs-on: ubuntu-latest
steps:
- name: Check out repository code
uses: actions/checkout@v4
- name: Setup Go
uses: actions/setup-go@v5
with:
go-version: '1.24.x'
- name: Test with the Go CLI
run: go test ./...
- name: Run Trivy vulnerability scanner
uses: aquasecurity/trivy-action@0.28.0
with:
scan-type: 'fs'
scan-ref: '.'
Build_Image:
runs-on: ubuntu-latest
steps:
- name: Check out repository code
uses: actions/checkout@v4
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3
with:
driver: remote
endpoint: tcp://buildkit-service.buildkit-service.svc:1234
- name: Build and Push the Docker Image
uses: docker/build-push-action@v6
with:
context: .
file: ./Dockerfile
push: false
tags: |
lerentis/canada-kaktus:latest