forked from rapid7/metasploit-omnibus
-
Notifications
You must be signed in to change notification settings - Fork 0
59 lines (53 loc) · 1.33 KB
/
verify.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
name: Verify
# https://docs.github.com/en/actions/using-workflows/workflow-syntax-for-github-actions#permissions
permissions:
actions: none
checks: none
contents: read
deployments: none
id-token: none
issues: none
discussions: none
packages: none
pages: none
pull-requests: none
repository-projects: none
security-events: none
statuses: none
on:
push:
branches:
- '*'
pull_request:
branches:
- '*'
jobs:
test:
runs-on: ${{ matrix.os }}
timeout-minutes: 90
strategy:
fail-fast: false
matrix:
os:
- ubuntu-latest
# From: 'ls ./docker/'
image_name:
- centos6-x64
- debian-aarch64
- debian-armv7
- fedora30-x64
# Currently fails on rate limiting on Kali's side:
# - kali109-x64
- ubuntu1204-x64
- ubuntu1204-x86
- ubuntu1804-x64
name: ${{ matrix.os }} - ${{ matrix.image_name }}
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Build Docker image
run: |
export BUILD_DATE=$(date "+%Y_%m")
/bin/bash -x -c "docker build --tag rapid7/${IMAGE_NAME}-omnibus:${BUILD_DATE} -f ./docker/${IMAGE_NAME}/Dockerfile ./docker/${IMAGE_NAME}"
env:
IMAGE_NAME: ${{ matrix.image_name }}