-
Notifications
You must be signed in to change notification settings - Fork 31
117 lines (105 loc) · 2.8 KB
/
nightly.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
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
name: Choria Nightly
on:
workflow_dispatch: {}
schedule:
- cron: "40 0 * * *"
jobs:
el8_64:
runs-on: ubuntu-latest
steps:
- name: Build
uses: choria-io/actions/packager@main
with:
build_package: el8_64
packager_tag: el8-go1.22
version: nightly
el9_64:
runs-on: ubuntu-latest
steps:
- name: Build
uses: choria-io/actions/packager@main
with:
build_package: el9_64
packager_tag: el9-go1.22
version: nightly
linux_tarball:
runs-on: ubuntu-latest
steps:
- name: Build
uses: choria-io/actions/packager@main
with:
build_package: linux_64_tarball
packager_tag: el8-go1.22
version: nightly
darwin_amd64_tarball:
runs-on: ubuntu-latest
steps:
- name: Build
uses: choria-io/actions/packager@main
with:
build_package: darwin_amd64_tarball
packager_tag: el8-go1.22
version: nightly
darwin_arm64_tarball:
runs-on: ubuntu-latest
steps:
- name: Build
uses: choria-io/actions/packager@main
with:
build_package: darwin_arm64_tarball
packager_tag: el8-go1.22
version: nightly
windows_zip:
runs-on: ubuntu-latest
steps:
- name: Build
uses: choria-io/actions/packager@main
with:
build_package: windows_64_zip
packager_tag: el8-go1.22
version: nightly
docker:
needs:
- upload
runs-on: ubuntu-latest
steps:
- name: Build and Publish Docker Container
uses: choria-io/actions/nightly@main
with:
package: choria
repo: choria
dockerfile: Dockerfile-nightly
registry_username: "${{ secrets.REGISTRY_USERNAME }}"
registry_password: "${{ secrets.REGISTRY_PASSWORD }}"
upload:
needs:
- el8_64
- el9_64
- linux_tarball
- windows_zip
- darwin_amd64_tarball
- darwin_arm64_tarball
runs-on: ubuntu-latest
steps:
- name: Download all artifacts
uses: actions/download-artifact@v4
with:
path: artifacts
- name: Artifacts normalization
shell: bash
run: |
cd artifacts
for i in foss*
do
mv -v $i $(echo $i|cut -d_ -f2-)
done
- name: Upload artifacts to Spaces
uses: jakejarvis/s3-sync-action@master
with:
args: --endpoint=https://ams3.digitaloceanspaces.com --acl authenticated-read
env:
AWS_S3_BUCKET: choria-packages-ams
AWS_ACCESS_KEY_ID: ${{ secrets.SPACES_ACCESS_KEY_ID }}
AWS_SECRET_ACCESS_KEY: ${{ secrets.SPACES_SECRET_ACCESS_KEY }}
SOURCE_DIR: artifacts
DEST_DIR: nightly