adding helm linting on PRs, add versioned release workflow

This commit is contained in:
Moustafa Nawar
2023-02-24 13:31:21 +02:00
parent 9f5248aa88
commit 459ef73c30
2 changed files with 36 additions and 8 deletions

18
.github/workflows/pr-workflow.yaml vendored Normal file
View 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

View File

@@ -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