forked from opf/openproject
-
Notifications
You must be signed in to change notification settings - Fork 0
61 lines (60 loc) · 1.53 KB
/
packager.yml
File metadata and controls
61 lines (60 loc) · 1.53 KB
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
name: Package
on:
push:
branches:
- packaging/*
- release/*
- stable/*
workflow_dispatch:
schedule:
- cron: '0 3 * * *' # Daily at 03:00
jobs:
build:
if: github.repository == 'opf/openproject'
name: ${{ matrix.target }}
runs-on: ubuntu-latest
services:
postgres:
image: postgres:16
env:
POSTGRES_DB: app
POSTGRES_USER: app
POSTGRES_PASSWORD: p4ssw0rd
ports:
- 5432:5432
strategy:
fail-fast: false
matrix:
target:
- debian:11
- debian:12
- ubuntu:20.04
- ubuntu:22.04
- el:9
- sles:15
steps:
- uses: actions/checkout@v5
with:
fetch-depth: 0
- name: Setup
id: setup
run: |
VERSION=$(ruby -r ./lib/open_project/version.rb -e "puts OpenProject::VERSION")
echo "version=$VERSION" >> $GITHUB_OUTPUT
- name: Package
uses: pkgr/action/package@main
id: package
with:
target: ${{ matrix.target }}
version: ${{ steps.setup.outputs.version }}
debug: true
env: |
DATABASE_URL=postgres://app:p4ssw0rd@127.0.0.1:5432/app
- name: Publish
uses: pkgr/action/publish@main
with:
target: ${{ matrix.target }}
token: ${{ secrets.PACKAGER_PUBLISH_TOKEN }}
repository: opf/openproject
channel: ${{ github.ref_name }}
file: ${{ steps.package.outputs.package_path }}