-
Notifications
You must be signed in to change notification settings - Fork 179
37 lines (37 loc) · 1.17 KB
/
veinmind-sync.yml
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
name: veinmind-tools-sync
on:
workflow_call:
secrets:
HARBOR_USERNAME:
required: true
HARBOR_PASSWORD:
required: true
jobs:
sync_harbor:
strategy:
fail-fast: false
matrix:
plugin: [
veinmind-backdoor,
veinmind-history,
veinmind-basic,
veinmind-escape,
veinmind-privilege-escalation,
veinmind-iac,
veinmind-log4j2,
veinmind-malicious,
veinmind-sensitive,
veinmind-unsafe-mount,
veinmind-vuln,
veinmind-weakpass,
veinmind-webshell,
veinmind-minio,
veinmind-runner
]
runs-on: ubuntu-20.04
steps:
- uses: actions/checkout@v3
- name: skopeo-copy
run: |
skopeo sync --src docker --dest docker --dest-creds ${{ secrets.HARBOR_USERNAME }}:${{ secrets.HARBOR_PASSWORD }} veinmind/${{ matrix.plugin }}:${{github.ref_name}} registry.veinmind.tech/veinmind/
skopeo sync --src docker --dest docker --dest-creds ${{ secrets.HARBOR_USERNAME }}:${{ secrets.HARBOR_PASSWORD }} veinmind/${{ matrix.plugin }}:latest registry.veinmind.tech/veinmind/