Skip to content

Commit

Permalink
cd: publish deb package
Browse files Browse the repository at this point in the history
Publish deb artifacts 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 #198
  • Loading branch information
DifferentialOrange committed Nov 9, 2022
1 parent 017768a commit e499014
Show file tree
Hide file tree
Showing 4 changed files with 84 additions and 1 deletion.
49 changes: 49 additions & 0 deletions .github/workflows/packing.yml
Original file line number Diff line number Diff line change
Expand Up @@ -494,3 +494,52 @@ jobs:

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

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

needs:
- run_tests_deb

runs-on: ubuntu-latest

strategy:
fail-fast: false

matrix:
target:
- os: ubuntu
dist: focal # 20.04
- os: ubuntu
dist: jammy # 22.04
- os: debian
dist: buster # 10
- os: debian
dist: bullseye # 11

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 deb artifacts
uses: actions/download-artifact@v3
with:
name: deb_dist
path: deb_dist

- name: Publish artifacts
run: |
export FILE_FLAGS=$(find deb_dist/ -type f -regex '.*\.deb' -or -regex '.*\.dsc' \
| 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 @@ -190,6 +190,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
- Pack RPM package with GitHub Actions (#164, #198).
- Publish RPM package with GitHub Actions (#164, #198).
- Pack deb package with GitHub Actions (#198).
- Publish deb package with GitHub Actions (#198).

### Changed
- Bump msgpack requirement to 1.0.4 (PR #223).
Expand Down
20 changes: 19 additions & 1 deletion README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ The recommended way to install the ``tarantool`` package is using ``pip``.
With dnf
^^^^^^^^

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

Add the repository

Expand All @@ -43,6 +43,24 @@ and then install the package
$ dnf install -y python3-tarantool
With apt
^^^^^^^^

You can install ``python3-tarantool`` deb package if you use
Debian (10, 11) or Ubuntu (20.04, 22.04).

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
$ apt install -y python3-tarantool
ZIP archive
^^^^^^^^^^^

Expand Down
15 changes: 15 additions & 0 deletions docs/source/index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,21 @@ and then install the package
$ dnf install -y python3-tarantool
Otherwise, you can install ``python3-tarantool`` deb package if you use Debian (10, 11)
or Ubuntu (20.04, 22.04).

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
$ apt install -y python3-tarantool
Source code is available on `GitHub`_.

Documentation
Expand Down

0 comments on commit e499014

Please sign in to comment.