Add release and chart workflow

This commit is contained in:
galal-hussein
2023-02-02 22:57:46 +02:00
parent eb327f42a3
commit 44c7063eb1
3 changed files with 30 additions and 2 deletions

View File

@@ -3,7 +3,7 @@ name: Chart Release
on:
push:
branches:
- main
- k3k-chart
jobs:
release:

28
.github/workflows/release.yml vendored Normal file
View File

@@ -0,0 +1,28 @@
name: K3K Release
on:
push:
tags:
- "v*"
jobs:
release:
permissions:
contents: write
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Build
uses: addnab/docker-run-action@v3
with:
registry: docker.io
image: rancher/dapper:v0.5.5
options: -v /var/run/docker.sock:/var/run/docker.sock
run: |
dapper ci
- uses: SierraSoftworks/gh-releases@v1.0.7
with:
token: ${{ secrets.TOKEN }}
overwrite: 'true'
files: |
dist/artifacts/k3k