Skip to content

Commit 556ad4c

Browse files
cd: publish RPM package
Publish RPM package on tag. To test, comment "run only on tags" condition, change RWS_REPO to https://rws-dev.tarantool.org. See [1] about other OS support. 1. #257 Closes #164, part of #198
1 parent 25e4bf4 commit 556ad4c

File tree

4 files changed

+79
-0
lines changed

4 files changed

+79
-0
lines changed

.github/workflows/packing.yml

+47
Original file line numberDiff line numberDiff line change
@@ -333,3 +333,50 @@ jobs:
333333

334334
- name: Run tests
335335
run: make test-pure-install
336+
337+
publish_rpm:
338+
if: startsWith(github.ref, 'refs/tags')
339+
340+
needs:
341+
- run_tests_rpm
342+
343+
runs-on: ubuntu-latest
344+
345+
strategy:
346+
fail-fast: false
347+
348+
matrix:
349+
target:
350+
- os: fedora
351+
dist: '34'
352+
- os: fedora
353+
dist: '35'
354+
- os: fedora
355+
dist: '36'
356+
357+
steps:
358+
- name: Clone the connector repo
359+
uses: actions/checkout@v3
360+
361+
- name: Install tools for package publishing
362+
run: sudo apt install -y curl make
363+
364+
- name: Download RPM artifacts
365+
uses: actions/download-artifact@v3
366+
with:
367+
name: rpm_dist_${{ matrix.target.os }}_${{ matrix.target.dist }}
368+
path: rpm_dist
369+
370+
- name: Publish artifacts
371+
run: |
372+
export FILE_FLAGS=$(find rpm_dist/ -type f -regex '.*\.rpm' \
373+
| xargs -I {} sh -c 'echo -F $(basename {})=@{}' \
374+
| xargs)
375+
echo $FILE_FLAGS
376+
curl -v -LfsS -X PUT $RWS_REPO/release/modules/$OS/$DIST \
377+
-F product=python3-tarantool $FILE_FLAGS -u $RWS_AUTH
378+
env:
379+
RWS_REPO: https://rws.tarantool.org
380+
RWS_AUTH: ${{ secrets.RWS_AUTH }}
381+
OS: ${{ matrix.target.os }}
382+
DIST: ${{ matrix.target.dist }}

CHANGELOG.md

+1
Original file line numberDiff line numberDiff line change
@@ -188,6 +188,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
188188
- Pack pip package with GitHub Actions (#198).
189189
- Publish pip package with GitHub Actions (#198).
190190
- Pack RPM package with GitHub Actions (#164, #198).
191+
- Publish RPM package with GitHub Actions (#164, #198).
191192

192193
### Changed
193194
- Bump msgpack requirement to 1.0.4 (PR #223).

README.rst

+17
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,23 @@ The recommended way to install the ``tarantool`` package is using ``pip``.
2626
2727
$ pip3 install tarantool
2828
29+
With dnf
30+
^^^^^^^^
31+
32+
You can install ``python3-tarantool`` RPM package if you use Fedora (34, 35, 36).
33+
34+
Add the repository
35+
36+
.. code-block:: bash
37+
38+
$ curl -L https://tarantool.io/OtKysgx/release/2/installer.sh | bash
39+
40+
and then install the package
41+
42+
.. code-block:: bash
43+
44+
$ dnf install -y python3-tarantool
45+
2946
ZIP archive
3047
^^^^^^^^^^^
3148

docs/source/index.rst

+14
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,20 @@ Install Tarantool Python connector with ``pip`` (`PyPI`_ page):
1414
1515
$ pip3 install tarantool
1616
17+
Otherwise, you can install ``python3-tarantool`` RPM package if you use Fedora (34, 35, 36).
18+
19+
Add the repository
20+
21+
.. code-block:: bash
22+
23+
$ curl -L https://tarantool.io/OtKysgx/release/2/installer.sh | bash
24+
25+
and then install the package
26+
27+
.. code-block:: bash
28+
29+
$ dnf install -y python3-tarantool
30+
1731
Source code is available on `GitHub`_.
1832

1933
Documentation

0 commit comments

Comments
 (0)