-
Notifications
You must be signed in to change notification settings - Fork 9
36 lines (31 loc) · 1022 Bytes
/
build-plugin-scanner.yml
File metadata and controls
36 lines (31 loc) · 1022 Bytes
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
name: Build and publish Scanner container image
on:
workflow_dispatch:
inputs:
trivy_version:
description: 'trivy version (e.g., 0.65.0)'
required: true
default: '0.65.0'
oras_version :
description : 'oras version (e.g., 1.3.0)'
required : true
default : '1.3.0'
jobs:
build-and-push:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Set up Docker Buildx
id: buildx
uses: docker/setup-buildx-action@v3
- name: Docker Login
uses: docker/login-action@v3
with:
registry: public.cr.seqera.io
username: ${{ vars.SEQERA_PUBLIC_CR_USERNAME }}
password: ${{ secrets.SEQERA_PUBLIC_CR_PASSWORD }}
- name: Build and Push Image to public.cr.seqera.io
run: |
cd plugin-scanner
make all trivy_version=${{ github.event.inputs.trivy_version }} oras_version=${{ github.event.inputs.oras_version }}