-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
0 parents
commit c252c03
Showing
21 changed files
with
1,545 additions
and
0 deletions.
There are no files selected for viewing
This file contains 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,73 @@ | ||
name: Build deb | ||
|
||
concurrency: | ||
group: branch-${{ github.ref_name }} | ||
cancel-in-progress: true | ||
|
||
on: | ||
workflow_call: | ||
outputs: | ||
deb: | ||
description: "Deb artifact url FQIN" | ||
value: ${{ jobs.config.outputs.fqin_release }} | ||
|
||
jobs: | ||
build-deb: | ||
name: Build deb | ||
runs-on: ubuntu-22.04 | ||
steps: | ||
- uses: actions/checkout@v4 | ||
with: | ||
path: src | ||
|
||
- name: Install depedencies | ||
working-directory: ./src | ||
run: | | ||
sudo apt-get build-dep . | ||
- name: Generate changelog | ||
working-directory: ./src | ||
run: | | ||
pkgname=libpve-storage-purestorage-perl | ||
tag_list=$(git tag -l | grep -ve '-rc\.[0-9]$' | grep -ve '-beta\.[0-9]$' | sort -V) | ||
for tag in ${tag_list}; do | ||
tag_header="$tag^..$tag" | ||
tag_info=$prevtag..$tag | ||
tag_version=$(echo $tag | cut -c2-)-1 | ||
if [[ "$prevrag" == "" ]]; then | ||
tag_header="$tag" | ||
tag_info="$tag" | ||
elif [[ "$tag" == "$prevtag" ]]; then | ||
continue | ||
fi | ||
echo >> changelog | ||
git log --pretty='format: -- %aN <%aE> %aD%n%n' $tag_header >> changelog | ||
git log --pretty=format:' * %s%n' $tag_info >> changelog | ||
echo "" >> changelog | ||
echo "$pkgname ($tag_version) stable; urgency=medium" >> changelog | ||
prevtag=$tag | ||
done | ||
tac changelog > debian/changelog | ||
- name: Build deb | ||
working-directory: ./src | ||
run: | | ||
dpkg-buildpackage -us -uc | ||
- name: generate sha256sums | ||
run: | | ||
sha256sum *.deb > sha256sums | ||
- id: artifact-upload | ||
uses: actions/upload-artifact@v4 | ||
with: | ||
name: deb-artifact-${{ github.sha }} | ||
if-no-files-found: error | ||
compression-level: 0 | ||
overwrite: true | ||
path: | | ||
*.deb | ||
sha256sums |
This file contains 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,56 @@ | ||
name: Release | ||
run-name: Release-${{ github.ref_name }}-${{ github.run_number }} | ||
|
||
permissions: | ||
contents: write | ||
|
||
concurrency: | ||
group: ${{ github.workflow }} | ||
cancel-in-progress: true | ||
|
||
on: | ||
workflow_dispatch: | ||
push: | ||
tags: | ||
- 'v[0-9]+.[0-9]+.[0-9]+' | ||
- 'v[0-9]+.[0-9]+.[0-9]+-rc.[0-9]' | ||
- 'v[0-9]+.[0-9]+.[0-9]+-beta.[0-9]' | ||
|
||
jobs: | ||
test: | ||
name: Test release tag | ||
runs-on: ubuntu-22.04 | ||
steps: | ||
- run: | | ||
echo ${{ github.ref }} | ||
- if: ${{ github.ref_type != 'tag' }} | ||
run: | | ||
echo "::error::${{ github.ref }} branch is not a release tag"; exit 1 | ||
build: | ||
name: Make deb package | ||
needs: | ||
- test | ||
uses: ./.github/workflows/_deb.yml | ||
secrets: inherit | ||
|
||
release: | ||
name: Release | ||
needs: | ||
- build | ||
runs-on: ubuntu-22.04 | ||
steps: | ||
- id: artifact-download | ||
uses: actions/download-artifact@v4 | ||
with: | ||
name: deb-artifact-${{ github.sha }} | ||
|
||
- uses: softprops/action-gh-release@v2 | ||
with: | ||
tag_name: ${{ github.ref_name }} | ||
generate_release_notes: true | ||
make_latest: true | ||
prerelease: true | ||
files: | | ||
*.deb | ||
sha256sums |
This file contains 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,11 @@ | ||
debian/.debhelper | ||
debian/changelog | ||
debian/debhelper-build-stamp | ||
debian/libpve-storage-purestorage-perl | ||
debian/files | ||
debian/package | ||
debian/tmp | ||
/*.buildinfo | ||
/*.deb | ||
*.log | ||
*.substvars |
This file contains 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,20 @@ | ||
# .perltidyrc - Configuration for perltidy | ||
|
||
# Indentation | ||
--indent-columns=2 | ||
--continuation-indentation=2 | ||
--extended-continuation-indentation | ||
|
||
# Line length and wrapping | ||
--maximum-line-length=160 | ||
|
||
# Brackets spaces | ||
--paren-tightness=0 | ||
--brace-tightness=0 | ||
--block-brace-tightness=0 | ||
|
||
# Comments | ||
|
||
# Blocks | ||
--cuddled-else | ||
--cuddled-blocks |
This file contains 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 @@ | ||
Timur Kumakbayev <[email protected]> |
This file contains 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 @@ | ||
* @timansky @zigmund |
This file contains 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,61 @@ | ||
# Contributing Guidelines | ||
|
||
The following is a set of guidelines for contributing to nginx project. | ||
We really appreciate that you are considering contributing! | ||
|
||
## Table of Contents | ||
|
||
- [Ask a Question](#ask-a-question) | ||
- [Report a Bug](#report-a-bug) | ||
- [Suggest a Feature or Enhancement](#suggest-a-feature-or-enhancement) | ||
- [Open a Discussion](#open-a-discussion) | ||
- [Submit a Pull Request](#submit-a-pull-request) | ||
- [Issue Lifecycle](#issue-lifecycle) | ||
|
||
## Ask a Question | ||
|
||
To ask a question, open an issue on GitHub with the label `question`. | ||
|
||
## Report a Bug | ||
|
||
To report a bug, open an issue on GitHub with the label `bug` using the | ||
available bug report issue template. Before reporting a bug, make sure the | ||
issue has not already been reported. | ||
|
||
## Suggest a Feature or Enhancement | ||
|
||
To suggest a feature or enhancement, open an issue on GitHub with the label | ||
`feature` or `enhancement` using the available feature request issue template. | ||
Please ensure the feature or enhancement has not already been suggested. | ||
|
||
|
||
## Submit a Pull Request | ||
|
||
Follow this plan to contribute a change to plugin source code: | ||
|
||
- Fork repository | ||
- Create a branch | ||
- Implement your changes in this branch | ||
- Submit a pull request (PR) when your changes are tested and ready for review | ||
|
||
### Formatting Changes | ||
|
||
- Changes should be formatted according to the code style | ||
|
||
- Keep a clean, concise and meaningful commit history on your branch, rebasing | ||
locally and breaking changes logically into commits before submitting a PR | ||
|
||
- Each commit message should have a single-line subject line followed by verbose | ||
description after an empty line | ||
|
||
- Limit the subject line to 67 characters, and the rest of the commit message | ||
to 76 characters | ||
|
||
- Reference issues in the the subject line; if the commit fixes an issue, | ||
[name it](https://docs.github.com/en/issues/tracking-your-work-with-issues/linking-a-pull-request-to-an-issue) | ||
accordingly | ||
|
||
### Before Submitting | ||
|
||
- Try to make it clear why the suggested change is needed, and provide a use | ||
case, if possible |
This file contains 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,21 @@ | ||
MIT License | ||
|
||
Copyright (c) 2024 Kolesa, JSC | ||
|
||
Permission is hereby granted, free of charge, to any person obtaining a copy | ||
of this software and associated documentation files (the "Software"), to deal | ||
in the Software without restriction, including without limitation the rights | ||
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell | ||
copies of the Software, and to permit persons to whom the Software is | ||
furnished to do so, subject to the following conditions: | ||
|
||
The above copyright notice and this permission notice shall be included in all | ||
copies or substantial portions of the Software. | ||
|
||
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR | ||
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, | ||
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE | ||
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER | ||
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, | ||
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE | ||
SOFTWARE. |
Oops, something went wrong.