-
Notifications
You must be signed in to change notification settings - Fork 35
78 lines (64 loc) · 1.89 KB
/
nightly-packages.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
69
70
71
72
73
74
75
76
77
name: Nigthly packages build
on:
push:
branches: [ master ]
jobs:
deb12:
name: Debian 12 nightly package building
runs-on: ubuntu-latest
container: ghcr.io/yeti-switch/yeti-web/build-image:bookworm
services:
db:
image: ghcr.io/yeti-switch/yeti-web/pgsql:16
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
- name: set git safe directory
run: git config --global --add safe.directory '*'
- name: Build package
run: make package
env:
YETI_DB_HOST: db
YETI_DB_PORT: 5432
CDR_DB_HOST: db
CDR_DB_PORT: 5432
PACKAGE_TYPE: nightly
- name: Save deb package as artifact
uses: actions/upload-artifact@v4
with:
name: deb12-package
path: /__w/yeti-web/*.deb
- name: Upload package to ${{github.ref}} repo
env:
PKG_API_BASE: ${{secrets.PKG_API_BASE}}
run: ci/deploy.sh bookworm nightly main ../*.deb
deb12_container:
name: Debian 12 container
needs: deb12
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Download a single artifact
uses: actions/download-artifact@v4
with:
name: deb12-package
- name: Display structure of downloaded files
run: ls -la
- name: Display path
run: pwd
- name: Login to GitHub Container Registry
uses: docker/login-action@v3
with:
registry: ghcr.io
username: ${{ github.repository_owner }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Push to Docker Hub
uses: docker/build-push-action@v5
with:
context: .
file: ci/nightly-package.Dockerfile
push: true
tags: ghcr.io/yeti-switch/yeti-web:nightly-build