Skip to content

Commit

Permalink
cd: publish RPM package
Browse files Browse the repository at this point in the history
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
  • Loading branch information
DifferentialOrange committed Nov 9, 2022
1 parent 25e4bf4 commit 556ad4c
Show file tree
Hide file tree
Showing 4 changed files with 79 additions and 0 deletions.
47 changes: 47 additions & 0 deletions .github/workflows/packing.yml
Original file line number Diff line number Diff line change
Expand Up @@ -333,3 +333,50 @@ jobs:

- name: Run tests
run: make test-pure-install

publish_rpm:
if: startsWith(github.ref, 'refs/tags')

needs:
- run_tests_rpm

runs-on: ubuntu-latest

strategy:
fail-fast: false

matrix:
target:
- os: fedora
dist: '34'
- os: fedora
dist: '35'
- os: fedora
dist: '36'

steps:
- name: Clone the connector repo
uses: actions/checkout@v3

- name: Install tools for package publishing
run: sudo apt install -y curl make

- name: Download RPM artifacts
uses: actions/download-artifact@v3
with:
name: rpm_dist_${{ matrix.target.os }}_${{ matrix.target.dist }}
path: rpm_dist

- name: Publish artifacts
run: |
export FILE_FLAGS=$(find rpm_dist/ -type f -regex '.*\.rpm' \
| xargs -I {} sh -c 'echo -F $(basename {})=@{}' \
| xargs)
echo $FILE_FLAGS
curl -v -LfsS -X PUT $RWS_REPO/release/modules/$OS/$DIST \
-F product=python3-tarantool $FILE_FLAGS -u $RWS_AUTH
env:
RWS_REPO: https://rws.tarantool.org
RWS_AUTH: ${{ secrets.RWS_AUTH }}
OS: ${{ matrix.target.os }}
DIST: ${{ matrix.target.dist }}
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -188,6 +188,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
- Pack pip package with GitHub Actions (#198).
- Publish pip package with GitHub Actions (#198).
- Pack RPM package with GitHub Actions (#164, #198).
- Publish RPM package with GitHub Actions (#164, #198).

### Changed
- Bump msgpack requirement to 1.0.4 (PR #223).
Expand Down
17 changes: 17 additions & 0 deletions README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,23 @@ The recommended way to install the ``tarantool`` package is using ``pip``.
$ pip3 install tarantool
With dnf
^^^^^^^^

You can install ``python3-tarantool`` RPM package if you use Fedora (34, 35, 36).

Add the repository

.. code-block:: bash
$ curl -L https://tarantool.io/OtKysgx/release/2/installer.sh | bash
and then install the package

.. code-block:: bash
$ dnf install -y python3-tarantool
ZIP archive
^^^^^^^^^^^

Expand Down
14 changes: 14 additions & 0 deletions docs/source/index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,20 @@ Install Tarantool Python connector with ``pip`` (`PyPI`_ page):
$ pip3 install tarantool
Otherwise, you can install ``python3-tarantool`` RPM package if you use Fedora (34, 35, 36).

Add the repository

.. code-block:: bash
$ curl -L https://tarantool.io/OtKysgx/release/2/installer.sh | bash
and then install the package

.. code-block:: bash
$ dnf install -y python3-tarantool
Source code is available on `GitHub`_.

Documentation
Expand Down

0 comments on commit 556ad4c

Please sign in to comment.