mirror of
https://github.com/outbackdingo/qdrant-helm.git
synced 2026-01-27 10:20:18 +00:00
adding helm linting on PRs, add versioned release workflow
This commit is contained in:
18
.github/workflows/pr-workflow.yaml
vendored
Normal file
18
.github/workflows/pr-workflow.yaml
vendored
Normal file
@@ -0,0 +1,18 @@
|
||||
name: Pull Request
|
||||
on:
|
||||
pull_request:
|
||||
types: [synchronize, opened, reopened]
|
||||
branches: ['main']
|
||||
|
||||
jobs:
|
||||
PR:
|
||||
name: Pull Request
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- name: Checkout
|
||||
uses: actions/checkout@v3
|
||||
|
||||
- name: Run helm lint
|
||||
shell: bash
|
||||
run: |
|
||||
helm lint
|
||||
@@ -1,18 +1,27 @@
|
||||
name: Upgrade Version
|
||||
name: Release
|
||||
on:
|
||||
pull_request:
|
||||
types: [closed]
|
||||
branches: ['main']
|
||||
|
||||
push:
|
||||
branches:
|
||||
- 'releases/**'
|
||||
jobs:
|
||||
UpgradeVersion:
|
||||
if: github.event.pull_request.merged == true
|
||||
name: Upgrade Version
|
||||
Release:
|
||||
name: Release Workflow
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- name: Checkout
|
||||
uses: actions/checkout@v3
|
||||
|
||||
- name: Run helm lint
|
||||
shell: bash
|
||||
run: |
|
||||
helm lint
|
||||
|
||||
- name: Tag Release Commit
|
||||
shell: bash
|
||||
run: |
|
||||
git tag ${GITHUB_REF##*/}
|
||||
git push origin ${GITHUB_REF##*/}
|
||||
|
||||
- name: Helm Package
|
||||
shell: bash
|
||||
run: |
|
||||
@@ -38,3 +47,4 @@ jobs:
|
||||
git add qdrant-*.tgz index.yaml
|
||||
git commit -m "version upgrade"
|
||||
git push
|
||||
|
||||
Reference in New Issue
Block a user