-
Notifications
You must be signed in to change notification settings - Fork 27
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: public helm repository via github pages
- Loading branch information
1 parent
dc419b2
commit 63f5459
Showing
9 changed files
with
121 additions
and
63 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 |
---|---|---|
|
@@ -11,3 +11,5 @@ indent_size=2 | |
[*.py] | ||
indent_size = 4 | ||
|
||
[README.adoc] | ||
max_line_length = 100 |
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 |
---|---|---|
@@ -1,38 +1,70 @@ | ||
name: Release Helm chart and Docker image | ||
name: Release CMAK operator | ||
|
||
on: | ||
push: | ||
tags: | ||
- '[0-9]+.[0-9]+.[0-9]+' | ||
workflow_dispatch | ||
|
||
jobs: | ||
build_docker_job: | ||
name: Helm chart and Docker image | ||
name: Docker image | ||
runs-on: ubuntu-18.04 | ||
steps: | ||
- name: checkout | ||
uses: actions/checkout@v2 | ||
with: | ||
fetch-depth: 0 | ||
- name: nodejs 12 | ||
uses: actions/setup-node@v1 | ||
with: | ||
node-version: '12.x' | ||
- run: npm install [email protected] @release-it/[email protected] | ||
- name: releaseIt | ||
run: | | ||
git config user.email "eshepelyuk@github" | ||
git config user.name "Ievgenii Shepeliuk" | ||
npx release-it --ci | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
- name: cmak version | ||
id: cmakVersion | ||
run: | | ||
cat /tmp/cmak.version | ||
echo "::set-env name=CMAK_VERSION::$(cat /tmp/cmak.version)" | ||
- uses: azure/setup-helm@v1 | ||
- run: helm package . --version $CMAK_VERSION | ||
- name: upload artifact | ||
uses: actions/upload-artifact@v2 | ||
with: | ||
name: "helm" | ||
path: "cmak-operator-${{ env.CMAK_VERSION }}.tgz" | ||
- name: docker login | ||
uses: docker/login-action@v1 | ||
with: | ||
username: eshepelyuk | ||
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 }} | ||
|
||
publish_chart_job: | ||
needs: build_docker_job | ||
name: Helm chart | ||
runs-on: ubuntu-18.04 | ||
steps: | ||
- name: checkout gh-pages | ||
uses: actions/checkout@v2 | ||
with: | ||
ref: gh-pages | ||
- name: download artifact | ||
uses: actions/download-artifact@v2 | ||
id: download | ||
with: | ||
name: helm | ||
- uses: azure/setup-helm@v1 | ||
- run: helm repo index . | ||
- name: publish | ||
uses: actions-js/push@master | ||
with: | ||
github_token: ${{ secrets.GITHUB_TOKEN }} | ||
branch: gh-pages |
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 |
---|---|---|
|
@@ -3,3 +3,5 @@ CHANGELOG.md | |
*.tgz | ||
node_modules | ||
package-lock.json | ||
package.json | ||
.idea |
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 |
---|---|---|
|
@@ -31,3 +31,4 @@ venv | |
*.json | ||
skaffold.yaml | ||
|
||
node_modules |
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 |
---|---|---|
@@ -1,29 +1,21 @@ | ||
{ | ||
"ci": true, | ||
"git": { | ||
"commitMessage": "chore: release ${version}", | ||
"tagAnnotation": "chore: release ${version}", | ||
"requireCleanWorkingDir": true, | ||
"requireCommits": true, | ||
"requireBranch": "master", | ||
"commit": true, | ||
"push": true, | ||
"tag": true | ||
"commit": false, | ||
"tagAnnotation": "chore: release ${version}" | ||
}, | ||
|
||
"npm": { | ||
"publish": false | ||
}, | ||
|
||
"npm": false, | ||
"github": { | ||
"release": true | ||
"release": true, | ||
"assets": ["cmak-operator*.tgz"] | ||
}, | ||
|
||
"plugins": { | ||
"@release-it/conventional-changelog": { | ||
"preset": "conventionalcommits" | ||
}, | ||
"@release-it/bumper": { | ||
"out": "Chart.yaml" | ||
} | ||
}, | ||
"hooks": { | ||
"after:release": "echo ${version} > /tmp/cmak.version" | ||
} | ||
} |
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
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
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
This file was deleted.
Oops, something went wrong.