Build and release packages #1
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 }} |