Skip to content

Commit

Permalink
feat: publish helm chart with release
Browse files Browse the repository at this point in the history
  • Loading branch information
eshepelyuk committed Sep 1, 2020
1 parent 75c38f3 commit 303039d
Show file tree
Hide file tree
Showing 6 changed files with 30 additions and 29 deletions.
22 changes: 0 additions & 22 deletions .github/workflows/changelog.yaml

This file was deleted.

Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
name: Build and publish docker image
name: Release Helm chart and Docker image
on:
push:
tags:
- '[0-9]+.[0-9]+.[0-9]+'
jobs:
build_docker_job:
name: Build and publish
name: Helm chart and Docker image
runs-on: ubuntu-18.04
steps:
- name: checkout
Expand All @@ -17,8 +17,22 @@ jobs:
password: ${{ secrets.DOCKERHUB_PASSWORD }}
- name: detect version
run: echo "::set-env name=CMAK_VERSION::${GITHUB_REF:10}"
- uses: azure/setup-helm@v1
- name: package helm chart
run: helm package .
- name: publish docker image
uses: hiberbee/github-action-skaffold@latest
with:
command: build
tag: ${{ env.CMAK_VERSION }}
- name: attach helm chart to release
uses: ncipollo/release-action@v1
with:
artifacts: "cmak-operator-${{ env.CMAK_VERSION }}.tgz"
allowUpdates: true
omitBody: true
omitBodyDuringUpdate: true
omitName: true
omitNameDuringUpdate: true
replacesArtifacts: true
token: ${{ secrets.GITHUB_TOKEN }}
4 changes: 3 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
venv
CHANGELOG.md

*.tgz
node_modules
package-lock.json
1 change: 1 addition & 0 deletions .helmignore
Original file line number Diff line number Diff line change
Expand Up @@ -23,3 +23,4 @@
.vscode/

venv
*.tgz
11 changes: 9 additions & 2 deletions .release-it.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,11 @@
{
"git": {
"commitMessage": "chore: release ${version}",
"tagAnnotation": "chore: release ${version}",
"requireCleanWorkingDir": true,
"requireCommits": true,
"commit": false,
"requireBranch": "master",
"commit": true,
"push": true,
"tag": true
},
Expand All @@ -16,7 +20,10 @@

"plugins": {
"@release-it/conventional-changelog": {
"preset": "angular"
"preset": "conventionalcommits"
},
"@release-it/bumper": {
"out": "Chart.yaml"
}
}
}
3 changes: 1 addition & 2 deletions Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@ apiVersion: v2
name: cmak-operator
description: CMAK operator for K8S.
type: application

version: 0.6.0
version: 0.1.0
appVersion: 3.0.0.5

0 comments on commit 303039d

Please sign in to comment.