Skip to content

Commit 8759ed8

Browse files
ylobankovLeonidVas
authored andcommitted
cd: add package deploy workflow
This workflow is intended to run on a tag push to the 'master' branch for creating and deploying module packages to S3 based repositories. Closes #138
1 parent 7d05b6d commit 8759ed8

File tree

1 file changed

+68
-0
lines changed

1 file changed

+68
-0
lines changed

.github/workflows/packaging.yml

+68
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,68 @@
1+
name: packaging
2+
3+
on:
4+
push:
5+
tags:
6+
- '*'
7+
8+
jobs:
9+
package:
10+
runs-on: ubuntu-latest
11+
12+
strategy:
13+
fail-fast: false
14+
matrix:
15+
platform:
16+
- { os: 'debian', dist: 'stretch' }
17+
- { os: 'debian', dist: 'buster' }
18+
- { os: 'debian', dist: 'bullseye' }
19+
- { os: 'el', dist: '7' }
20+
- { os: 'el', dist: '8' }
21+
- { os: 'fedora', dist: '30' }
22+
- { os: 'fedora', dist: '31' }
23+
- { os: 'fedora', dist: '32' }
24+
- { os: 'fedora', dist: '33' }
25+
- { os: 'fedora', dist: '34' }
26+
- { os: 'opensuse-leap', dist: '15.1' }
27+
- { os: 'opensuse-leap', dist: '15.2' }
28+
- { os: 'ubuntu', dist: 'xenial' }
29+
- { os: 'ubuntu', dist: 'bionic' }
30+
- { os: 'ubuntu', dist: 'focal' }
31+
- { os: 'ubuntu', dist: 'groovy' }
32+
- { os: 'ubuntu', dist: 'hirsute' }
33+
34+
env:
35+
OS: ${{ matrix.platform.os }}
36+
DIST: ${{ matrix.platform.dist }}
37+
38+
steps:
39+
- name: Clone the module
40+
uses: actions/checkout@v2
41+
42+
- name: Clone the packpack tool
43+
uses: actions/checkout@v2
44+
with:
45+
repository: packpack/packpack
46+
path: packpack
47+
48+
- name: Create packages
49+
run: ./packpack/packpack
50+
51+
- name: Deploy packages
52+
env:
53+
RWS_URL_PART: https://rws.tarantool.org/release/enabled
54+
RWS_AUTH: ${{ secrets.RWS_AUTH }}
55+
PRODUCT_NAME: tarantool-queue
56+
run: |
57+
CURL_CMD="curl -LfsS \
58+
-X PUT ${RWS_URL_PART}/${OS}/${DIST} \
59+
-u ${RWS_AUTH} \
60+
-F product=${PRODUCT_NAME}"
61+
62+
for f in $(ls -I '*build*' -I '*.changes' ./build); do
63+
CURL_CMD+=" -F $(basename ${f})=@./build/${f}"
64+
done
65+
66+
echo ${CURL_CMD}
67+
68+
${CURL_CMD}

0 commit comments

Comments
 (0)