-
Notifications
You must be signed in to change notification settings - Fork 0
46 lines (39 loc) · 1.06 KB
/
ci.yml
File metadata and controls
46 lines (39 loc) · 1.06 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
name: CI
on:
workflow_dispatch:
push:
branches-ignore:
- main
jobs:
build:
name: Build
runs-on: ubuntu-latest
timeout-minutes: 10
steps:
- name: Checkout
uses: actions/checkout@v2
with:
fetch-depth: 0
- name: Setup QEMU
uses: docker/setup-qemu-action@v1
- name: Setup Buildx
uses: docker/setup-buildx-action@v1
- name: Container - Login GitHub
uses: docker/login-action@v1
with:
registry: ghcr.io
username: ${{ secrets.BOT_GITHUB_NAME }}
password: ${{ secrets.BOT_GITHUB_TOKEN }}
- name: Container - Build
uses: docker/build-push-action@v2
with:
push: false
platforms: linux/amd64,linux/arm64
cache-from: type=registry,ref=ghcr.io/dataswift/base:latest
- name: Container - Scan
uses: aquasecurity/trivy-action@master
with:
scan-type: 'fs'
exit-code: 1
ignore-unfixed: true
severity: "UNKNOWN,LOW,MEDIUM,HIGH,CRITICAL"