Skip to content

Build and release packages #1

Build and release packages

Build and release packages #1

name: Build and release CLI
on:
workflow_dispatch:
push:
# run only against tags
tags:
- "infisical/v*.*.*-postgres"
jobs:
release-deb:
name: Build infisical standalone image postgres
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-ubuntu-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 }}