-
-
Notifications
You must be signed in to change notification settings - Fork 10
87 lines (74 loc) · 2.22 KB
/
cron.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
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
---
name: Deploy Docker Image
on:
schedule:
- cron: '0 23 * * *' # daily at 23:00
workflow_dispatch:
jobs:
deploy:
runs-on: ubuntu-latest
environment: release
steps:
- uses: actions/[email protected]
- name: Set up QEMU
uses: docker/[email protected]
- name: Set up Docker Buildx
id: buildx
uses: docker/[email protected]
- name: Docker meta - base
id: meta_base
uses: docker/[email protected]
with:
images: |
artis3n/kali
ghcr.io/artis3n/kali
flavor: |
latest=auto
prefix=
suffix=-no-wordlists,onlatest=true
tags: |
type=schedule
type=edge,branch=main
type=raw,value=latest
- name: Docker meta
id: meta
uses: docker/[email protected]
with:
images: |
artis3n/kali
ghcr.io/artis3n/kali
tags: |
type=schedule
type=edge,branch=main
type=raw,value=latest
- name: Login to Docker Hub
uses: docker/[email protected]
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}
- name: Login to GitHub Container Registry
uses: docker/[email protected]
with:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Build and Push
uses: docker/[email protected]
with:
target: base
platforms: linux/amd64,linux/arm64
push: true
tags: ${{ steps.meta_base.outputs.tags }}
labels: ${{ steps.meta_base.outputs.labels }}
cache-from: type=gha
cache-to: type=gha,mode=max
- name: Build and Push
uses: docker/[email protected]
with:
target: wordlists
platforms: linux/amd64,linux/arm64
push: true
tags: ${{ steps.meta.outputs.tags }}
labels: ${{ steps.meta.outputs.labels }}
cache-from: type=gha
cache-to: type=gha,mode=max