Skip to content

Commit e7f8202

Browse files
cd: publish deb package
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
1 parent edfd731 commit e7f8202

File tree

4 files changed

+84
-1
lines changed

4 files changed

+84
-1
lines changed

.github/workflows/packing.yml

+49
Original file line numberDiff line numberDiff line change
@@ -490,3 +490,52 @@ jobs:
490490

491491
- name: Run tests
492492
run: make test-pure-install
493+
494+
publish_deb:
495+
if: startsWith(github.ref, 'refs/tags')
496+
497+
needs:
498+
- run_tests_deb
499+
500+
runs-on: ubuntu-latest
501+
502+
strategy:
503+
fail-fast: false
504+
505+
matrix:
506+
target:
507+
- os: ubuntu
508+
dist: focal # 20.04
509+
- os: ubuntu
510+
dist: jammy # 22.04
511+
- os: debian
512+
dist: buster # 10
513+
- os: debian
514+
dist: bullseye # 11
515+
516+
steps:
517+
- name: Clone the connector repo
518+
uses: actions/checkout@v3
519+
520+
- name: Install tools for package publishing
521+
run: sudo apt install -y curl make
522+
523+
- name: Download deb artifacts
524+
uses: actions/download-artifact@v3
525+
with:
526+
name: deb_dist
527+
path: deb_dist
528+
529+
- name: Publish artifacts
530+
run: |
531+
export FILE_FLAGS=$(find deb_dist/ -type f -regex '.*\.deb' -or -regex '.*\.dsc' \
532+
| xargs -I {} sh -c 'echo -F $(basename {})=@{}' \
533+
| xargs)
534+
echo $FILE_FLAGS
535+
curl -v -LfsS -X PUT $RWS_REPO/release/modules/$OS/$DIST \
536+
-F product=python3-tarantool $FILE_FLAGS -u $RWS_AUTH
537+
env:
538+
RWS_REPO: https://rws.tarantool.org
539+
RWS_AUTH: ${{ secrets.RWS_AUTH }}
540+
OS: ${{ matrix.target.os }}
541+
DIST: ${{ matrix.target.dist }}

CHANGELOG.md

+1
Original file line numberDiff line numberDiff line change
@@ -190,6 +190,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
190190
- Pack RPM package with GitHub Actions (#164, #198).
191191
- Publish RPM package with GitHub Actions (#164, #198).
192192
- Pack deb package with GitHub Actions (#198).
193+
- Publish deb package with GitHub Actions (#198).
193194

194195
### Changed
195196
- Bump msgpack requirement to 1.0.4 (PR #223).

README.rst

+19-1
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ The recommended way to install the ``tarantool`` package is using ``pip``.
2929
With dnf
3030
^^^^^^^^
3131

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

3434
Add the repository
3535

@@ -43,6 +43,24 @@ and then install the package
4343
4444
$ dnf install -y python3-tarantool
4545
46+
With apt
47+
^^^^^^^^
48+
49+
You can install ``python3-tarantool`` deb package if you use
50+
Debian (10, 11) or Ubuntu (20.04, 22.04).
51+
52+
Add the repository
53+
54+
.. code-block:: bash
55+
56+
$ curl -L https://tarantool.io/OtKysgx/release/2/installer.sh | bash
57+
58+
and then install the package
59+
60+
.. code-block:: bash
61+
62+
$ apt install -y python3-tarantool
63+
4664
ZIP archive
4765
^^^^^^^^^^^
4866

docs/source/index.rst

+15
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,21 @@ and then install the package
2828
2929
$ dnf install -y python3-tarantool
3030
31+
Otherwise, you can install ``python3-tarantool`` deb package if you use Debian (10, 11)
32+
or Ubuntu (20.04, 22.04).
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+
$ apt install -y python3-tarantool
45+
3146
Source code is available on `GitHub`_.
3247

3348
Documentation

0 commit comments

Comments
 (0)