forked from greenbone/openvas-scanner
-
Notifications
You must be signed in to change notification settings - Fork 0
34 lines (32 loc) · 889 Bytes
/
control.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
name: CI
on:
push:
branches: [ main]
tags: ["v*"]
pull_request:
workflow_dispatch:
repository_dispatch:
schedule:
# rebuild image every sunday
- cron: "0 0 * * 0"
jobs:
init:
uses: ./.github/workflows/init.yaml
build:
uses: ./.github/workflows/build.yml
linting:
uses: ./.github/workflows/ci.yml
container:
needs: [build, init]
uses: ./.github/workflows/push-container.yml
secrets:
dockerhub_user: ${{ secrets.DOCKERHUB_USERNAME }}
dockerhub_token: ${{ secrets.DOCKERHUB_TOKEN}}
with:
is_latest_tag: ${{needs.init.outputs.is_latest_tag}} == 'true'
is_version_tag: ${{needs.init.outputs.is_version_tag}} == 'true'
# although it seems a bit odd, but that way we ensure
# that we test the latest greatest thing.
smoketests:
needs: [container, init]
uses: ./.github/workflows/smoketest.yaml