mirror of
https://github.com/rancher/k3k.git
synced 2026-08-19 04:16:16 +00:00
Add release workflow (#20)
Signed-off-by: galal-hussein <hussein.galal.ahmed.11@gmail.com>
This commit is contained in:
@@ -3,7 +3,6 @@ on:
|
||||
push:
|
||||
tags:
|
||||
- "v*"
|
||||
|
||||
jobs:
|
||||
release:
|
||||
permissions:
|
||||
@@ -12,17 +11,31 @@ jobs:
|
||||
steps:
|
||||
- name: Checkout
|
||||
uses: actions/checkout@v2
|
||||
- name: Build
|
||||
- name: Build K3K
|
||||
uses: addnab/docker-run-action@v3
|
||||
with:
|
||||
registry: docker.io
|
||||
image: rancher/dapper:v0.5.5
|
||||
options: -v ${{ github.workspace }}:/work -v /var/run/docker.sock:/var/run/docker.sock
|
||||
run: |
|
||||
pwd && ls -l
|
||||
- uses: SierraSoftworks/gh-releases@v1.0.7
|
||||
cd /work && dapper ci
|
||||
- name: Publish Binaries
|
||||
uses: SierraSoftworks/gh-releases@v1.0.7
|
||||
with:
|
||||
token: ${{ secrets.TOKEN }}
|
||||
overwrite: 'true'
|
||||
files: |
|
||||
dist/artifacts/k3k
|
||||
${{ github.workspace }}/bin/k3k
|
||||
- name: Docker Hub Login
|
||||
uses: docker/login-action@v2
|
||||
with:
|
||||
username: ${{ secrets.DOCKERHUB_USERNAME }}
|
||||
password: ${{ secrets.DOCKERHUB_TOKEN }}
|
||||
- name: Build and push
|
||||
uses: docker/build-push-action@v4
|
||||
with:
|
||||
push: true
|
||||
tags: husseingalal/k3k:${{ github.ref_name }}
|
||||
file: ./package/Dockerfile
|
||||
context: .
|
||||
|
||||
Reference in New Issue
Block a user