Skip to content

Commit f2a7f16

Browse files
Trigger build
1 parent dfbdc46 commit f2a7f16

File tree

1 file changed

+7
-14
lines changed

1 file changed

+7
-14
lines changed

.github/workflows/build-binaries.yml

+7-14
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,9 @@
11
name: Build Binaries and Deploy
22

33
on:
4-
workflow_dispatch:
5-
inputs:
6-
version:
7-
description: "Version number"
8-
required: true
9-
type: string
4+
push:
5+
branches:
6+
- daniel/rpm-binary
107

118
defaults:
129
run:
@@ -68,7 +65,7 @@ jobs:
6865
run: |
6966
cat <<EOF > infisical-core/DEBIAN/control
7067
Package: infisical-core
71-
Version: ${{ github.event.inputs.version }}
68+
Version: 1.1.2
7269
Section: base
7370
Priority: optional
7471
Architecture: ${{ matrix.arch == 'x64' && 'amd64' || matrix.arch }}
@@ -103,7 +100,7 @@ jobs:
103100
run: |
104101
cat <<EOF > infisical-core.spec
105102
Name: infisical-core
106-
Version: ${{ github.event.inputs.version }}
103+
Version: 1.1.2
107104
Release: 1%{?dist}
108105
Summary: Infisical Core standalone executable
109106
License: Proprietary
@@ -118,10 +115,6 @@ jobs:
118115
119116
%files
120117
/usr/local/bin/infisical-core
121-
122-
%changelog
123-
* $(date '+%a %b %d %Y') Infisical <daniel@infisical.com> - ${{ github.event.inputs.version }}-1
124-
- Initial RPM release
125118
EOF
126119
127120
# Build .rpm file (Red Hat-based systems only)
@@ -134,7 +127,7 @@ jobs:
134127
--define "_rpmdir $(pwd)/binary" \
135128
--target ${{ matrix.arch == 'x64' && 'x86_64' || 'aarch64' }} \
136129
infisical-core.spec
137-
mv rpmbuild/RPMS/${{ matrix.arch == 'x64' && 'x86_64' || 'aarch64' }}/infisical-core-${{ github.event.inputs.version }}-1.*.${{ matrix.arch == 'x64' && 'x86_64' || 'aarch64' }}.rpm ./binary/infisical-core-${{matrix.arch}}.rpm
130+
mv rpmbuild/RPMS/${{ matrix.arch == 'x64' && 'x86_64' || 'aarch64' }}/infisical-core-1.1.2-1.*.${{ matrix.arch == 'x64' && 'x86_64' || 'aarch64' }}.rpm ./binary/infisical-core-${{matrix.arch}}.rpm
138131
139132
- uses: actions/setup-python@v4
140133
with:
@@ -160,4 +153,4 @@ jobs:
160153
- name: Publish to Cloudsmith (Windows)
161154
if: matrix.os == 'win'
162155
working-directory: ./backend
163-
run: cloudsmith push raw infisical/infisical-core ./binary/infisical-core-${{ matrix.os }}-${{ matrix.arch }}.exe --republish --no-wait-for-sync --version ${{ github.event.inputs.version }} --api-key ${{ secrets.CLOUDSMITH_API_KEY }}
156+
run: cloudsmith push raw infisical/infisical-core ./binary/infisical-core-${{ matrix.os }}-${{ matrix.arch }}.exe --republish --no-wait-for-sync --version 1.1.2 --api-key ${{ secrets.CLOUDSMITH_API_KEY }}

0 commit comments

Comments
 (0)