-
Notifications
You must be signed in to change notification settings - Fork 0
63 lines (53 loc) · 1.58 KB
/
nightly-build.yaml
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
name: Nightly Docker Images Build
on:
workflow_dispatch:
workflow_call:
permissions:
packages: write
contents: read
jobs:
build-and-push:
runs-on: ubuntu-latest
strategy:
matrix:
image:
- name: database
dockerfile: Dockerfile.database
- name: server
dockerfile: Dockerfile.server
- name: worker
dockerfile: Dockerfile.worker
steps:
- name: Checkout repository
uses: actions/checkout@v3
- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: '3.12.7'
- name: Install build dependencies
run: |
python -m pip install --upgrade pip
pip install hatchling
- name: Build package
run: |
python -m hatchling build
- name: Set up QEMU
uses: docker/setup-qemu-action@v2
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v2
- name: Log in to GitHub Container Registry
uses: docker/login-action@v2
with:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Build ${{ matrix.image.name }} Image
uses: docker/build-push-action@v4
with:
context: ./
file: ./${{ matrix.image.dockerfile }}
push: true
tags: ghcr.io/h3xitsec/h3xrecon/${{ matrix.image.name }}:nightly
cache-from: type=gha
cache-to: type=gha,mode=max
platforms: linux/arm64,linux/amd64