-
Notifications
You must be signed in to change notification settings - Fork 0
51 lines (48 loc) · 1.53 KB
/
release-package-deb.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
name: Build and release packages
on:
workflow_dispatch:
push:
# run only against tags
tags:
- "infisical/v*.*.*-postgres"
jobs:
release-amd-debian-package:
name: Build debian amd package
runs-on: ubuntu-20.04
steps:
- name: Checkout source
uses: actions/checkout@v3
with:
fetch-depth: 0
- name: Build the debian package
run: make pkg-deb
- name: Copy the pkg from source to local
run: |
container_id=$(docker create infisical-omnibus-debian-builder)
docker cp "$container_id":/omnibus-project/pkg ./pkg
- uses: actions/setup-python@v4
- run: pip install --upgrade cloudsmith-cli
- name: Publish to CloudSmith
run: sh upload_to_cloudsmith.sh
env:
CLOUDSMITH_API_KEY: ${{ secrets.CLOUDSMITH_API_KEY }}
release-amd-rpm-package:
name: Build rpm amd package
runs-on: ubuntu-20.04
steps:
- name: Checkout source
uses: actions/checkout@v3
with:
fetch-depth: 0
- name: Build the rpm package
run: make pkg-rpm
- name: Copy the pkg from source to local
run: |
container_id=$(docker create infisical-omnibus-rpm-builder)
docker cp "$container_id":/omnibus-project/pkg ./pkg
- uses: actions/setup-python@v4
- run: pip install --upgrade cloudsmith-cli
- name: Publish to CloudSmith
run: sh upload_to_cloudsmith.sh
env:
CLOUDSMITH_API_KEY: ${{ secrets.CLOUDSMITH_API_KEY }}