Skip to content

Commit 67264d2

Browse files
nightly-dev build
1 parent baa4193 commit 67264d2

File tree

1 file changed

+71
-0
lines changed

1 file changed

+71
-0
lines changed
Lines changed: 71 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,71 @@
1+
name: "Release-Nightly: Build & Push DEV"
2+
3+
env:
4+
GIT_USERNAME: "DefectDojo release bot"
5+
GIT_EMAIL: "dojo-release-bot@users.noreply.github.com"
6+
7+
on:
8+
schedule:
9+
# every day at 5:00 UTC
10+
# in this case inputs are all null/empty, hence the default values are used below
11+
- cron: "0 5 * * *"
12+
13+
workflow_dispatch:
14+
inputs:
15+
branch:
16+
type: string
17+
description: 'Branch to checkout, build and publish'
18+
required: false
19+
default: 'dev'
20+
tag:
21+
type: string
22+
description: 'Tag to apply to the images'
23+
required: false
24+
default: 'nightly-dev'
25+
26+
27+
jobs:
28+
tag:
29+
runs-on: ubuntu-latest
30+
steps:
31+
- name: Checkout
32+
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
33+
with:
34+
ref: ${{ github.event.inputs.branch || 'dev'}}
35+
36+
- name: Configure git
37+
run: |
38+
git config --global user.name "${{ env.GIT_USERNAME }}"
39+
git config --global user.email "${{ env.GIT_EMAIL }}"
40+
41+
- name: Create new tag ${{ github.event.inputs.tag || 'nightly-dev'}}
42+
run: |
43+
git tag -f -a ${{ github.event.inputs.tag || 'nightly-dev'}} -m "[bot] release ${{ github.event.inputs.tag || 'nightly-dev'}}"
44+
git push origin ${{ github.event.inputs.tag || 'nightly-dev'}} -f
45+
46+
publish-docker-containers:
47+
needs: tag
48+
strategy:
49+
matrix:
50+
platform: ['linux/amd64', 'linux/arm64']
51+
fail-fast: false
52+
uses: ./.github/workflows/release-x-manual-docker-containers.yml
53+
with:
54+
release_number: ${{ github.event.inputs.tag || 'nightly-dev'}}
55+
platform: ${{ matrix.platform }}
56+
secrets: inherit
57+
58+
publish-container-digests:
59+
needs: publish-docker-containers
60+
uses: ./.github/workflows/release-x-manual-merge-container-digests.yml
61+
with:
62+
release_number: ${{ github.event.inputs.tag || 'nightly-dev' }}
63+
secrets: inherit
64+
65+
release-helm-chart:
66+
needs: publish-container-digests
67+
uses: ./.github/workflows/release-x-manual-helm-chart.yml
68+
with:
69+
release_number: ${{ github.event.inputs.tag || 'nightly-dev'}}
70+
secrets: inherit
71+

0 commit comments

Comments
 (0)