mirror of
https://github.com/awatertrevi/infisical.git
synced 2026-10-02 21:25:45 +00:00
Update build-binaries.yml
This commit is contained in:
@@ -83,7 +83,7 @@ jobs:
|
|||||||
### RPM
|
### RPM
|
||||||
|
|
||||||
- name: Set up .rpm package structure
|
- name: Set up .rpm package structure
|
||||||
if: matrix.os == 'ubuntu-latest'
|
if: matrix.os == 'linux'
|
||||||
run: |
|
run: |
|
||||||
mkdir -p infisical-core-rpm/usr/local/bin
|
mkdir -p infisical-core-rpm/usr/local/bin
|
||||||
cp ./binary/infisical-core infisical-core-rpm/usr/local/bin/
|
cp ./binary/infisical-core infisical-core-rpm/usr/local/bin/
|
||||||
@@ -96,7 +96,7 @@ jobs:
|
|||||||
|
|
||||||
# Create .spec file for RPM
|
# Create .spec file for RPM
|
||||||
- name: Create .spec file for RPM
|
- name: Create .spec file for RPM
|
||||||
if: matrix.os == 'ubuntu-latest'
|
if: matrix.os == 'linux'
|
||||||
run: |
|
run: |
|
||||||
cat <<EOF > infisical-core.spec
|
cat <<EOF > infisical-core.spec
|
||||||
Name: infisical-core
|
Name: infisical-core
|
||||||
@@ -119,7 +119,7 @@ jobs:
|
|||||||
|
|
||||||
# Build .rpm file (Red Hat-based systems only)
|
# Build .rpm file (Red Hat-based systems only)
|
||||||
- name: Build .rpm package
|
- name: Build .rpm package
|
||||||
if: matrix.os == 'ubuntu-latest'
|
if: matrix.os == 'linux'
|
||||||
run: |
|
run: |
|
||||||
rpmbuild -bb \
|
rpmbuild -bb \
|
||||||
--define "_topdir $(pwd)/rpmbuild" \
|
--define "_topdir $(pwd)/rpmbuild" \
|
||||||
@@ -145,7 +145,7 @@ jobs:
|
|||||||
|
|
||||||
# Publish .rpm file to Cloudsmith (Red Hat-based systems only)
|
# Publish .rpm file to Cloudsmith (Red Hat-based systems only)
|
||||||
- name: Publish .rpm to Cloudsmith
|
- name: Publish .rpm to Cloudsmith
|
||||||
if: matrix.os == 'ubuntu-latest'
|
if: matrix.os == 'linux'
|
||||||
working-directory: ./backend
|
working-directory: ./backend
|
||||||
run: cloudsmith push rpm --republish --no-wait-for-sync --api-key=${{ secrets.CLOUDSMITH_API_KEY }} infisical/infisical-core/any-distro/any-version ./binary/infisical-core-${{ matrix.arch }}.rpm
|
run: cloudsmith push rpm --republish --no-wait-for-sync --api-key=${{ secrets.CLOUDSMITH_API_KEY }} infisical/infisical-core/any-distro/any-version ./binary/infisical-core-${{ matrix.arch }}.rpm
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user