-
Notifications
You must be signed in to change notification settings - Fork 53
cd: add package deploy workflow #157
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from all commits
Commits
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,68 @@ | ||
name: packaging | ||
|
||
on: | ||
push: | ||
tags: | ||
- '*' | ||
|
||
jobs: | ||
package: | ||
runs-on: ubuntu-latest | ||
|
||
strategy: | ||
fail-fast: false | ||
matrix: | ||
platform: | ||
- { os: 'debian', dist: 'stretch' } | ||
- { os: 'debian', dist: 'buster' } | ||
- { os: 'debian', dist: 'bullseye' } | ||
- { os: 'el', dist: '7' } | ||
- { os: 'el', dist: '8' } | ||
- { os: 'fedora', dist: '30' } | ||
- { os: 'fedora', dist: '31' } | ||
- { os: 'fedora', dist: '32' } | ||
- { os: 'fedora', dist: '33' } | ||
- { os: 'fedora', dist: '34' } | ||
- { os: 'opensuse-leap', dist: '15.1' } | ||
- { os: 'opensuse-leap', dist: '15.2' } | ||
- { os: 'ubuntu', dist: 'xenial' } | ||
- { os: 'ubuntu', dist: 'bionic' } | ||
- { os: 'ubuntu', dist: 'focal' } | ||
- { os: 'ubuntu', dist: 'groovy' } | ||
- { os: 'ubuntu', dist: 'hirsute' } | ||
|
||
env: | ||
OS: ${{ matrix.platform.os }} | ||
DIST: ${{ matrix.platform.dist }} | ||
|
||
steps: | ||
- name: Clone the module | ||
uses: actions/checkout@v2 | ||
|
||
- name: Clone the packpack tool | ||
uses: actions/checkout@v2 | ||
with: | ||
repository: packpack/packpack | ||
path: packpack | ||
|
||
- name: Create packages | ||
run: ./packpack/packpack | ||
|
||
- name: Deploy packages | ||
env: | ||
RWS_URL_PART: https://rws.tarantool.org/release/enabled | ||
RWS_AUTH: ${{ secrets.RWS_AUTH }} | ||
PRODUCT_NAME: tarantool-queue | ||
run: | | ||
CURL_CMD="curl -LfsS \ | ||
-X PUT ${RWS_URL_PART}/${OS}/${DIST} \ | ||
-u ${RWS_AUTH} \ | ||
-F product=${PRODUCT_NAME}" | ||
|
||
for f in $(ls -I '*build*' -I '*.changes' ./build); do | ||
CURL_CMD+=" -F $(basename ${f})=@./build/${f}" | ||
done | ||
|
||
echo ${CURL_CMD} | ||
|
||
${CURL_CMD} |
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Question to @LeonidVas: I would re-check correctness of RWS logic here (just in case). Can you list all repositories, where the package will land?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yep.
multiply by
Excluding repositories where the package build failed.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Will not push to live repositories?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
https://rws.tarantool.org/release/...
- will push only to releaseThere was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Created issue #158