forked from syslog-ng/syslog-ng
-
Notifications
You must be signed in to change notification settings - Fork 0
68 lines (57 loc) · 1.7 KB
/
nightly-release.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
name: Nightly release
on:
workflow_dispatch:
schedule:
- cron: '00 23 * * *'
jobs:
create-source-tarball:
runs-on: ubuntu-latest
steps:
- name: Checkout syslog-ng source
uses: actions/checkout@v3
with:
fetch-depth: 0
- name: Prepare docker image
run: ./dbld/rules cache-image-tarball
- name: Create source tarball
run: ./dbld/rules pkg-tarball
- name: Store source tarball as artifact
uses: actions/upload-artifact@v3
with:
name: source-tarball
path: dbld/build/*.tar.gz
create-packages:
needs: create-source-tarball
uses: ./.github/workflows/create-packages.yml
with:
source-tarball-artifact-name: source-tarball
dbld-image-mode: cache
upload-packages:
needs: create-packages
uses: ./.github/workflows/upload-packages.yml
with:
pkg-type: nightly
secrets:
azure-sas-token: ${{ secrets.AZURE_SAS_TOKEN }}
index-packages:
needs: upload-packages
uses: ./.github/workflows/index-packages.yml
with:
pkg-type: nightly
secrets:
config-base64: ${{ secrets.PACKAGE_INDEXER_CONFIG_BASE64 }}
gpg-key-base64: ${{ secrets.PACKAGE_INDEXER_GPG_KEY_BASE64 }}
gpg-key-passphrase: ${{ secrets.PACKAGE_INDEXER_GPG_KEY_PASSPHRASE }}
test-packages:
needs: index-packages
uses: ./.github/workflows/test-apt-packages.yml
with:
pkg-type: nightly
publish-docker-image:
needs: test-packages
uses: ./.github/workflows/publish-docker-image.yml
with:
pkg-type: nightly
secrets:
dockerhub-username: ${{ secrets.DOCKERHUB_USERNAME }}
dockerhub-password: ${{ secrets.DOCKERHUB_PASSWORD }}