mirror of
https://github.com/rancher/k3k.git
synced 2026-04-04 17:57:07 +00:00
42 lines
1.2 KiB
YAML
42 lines
1.2 KiB
YAML
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 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: |
|
|
cd /work && dapper ci
|
|
- name: Publish Binaries
|
|
uses: SierraSoftworks/gh-releases@v1.0.7
|
|
with:
|
|
token: ${{ secrets.TOKEN }}
|
|
overwrite: 'true'
|
|
files: |
|
|
${{ github.workspace }}/bin/k3k
|
|
${{ github.workspace }}/bin/k3kcli
|
|
- 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: .
|
|
|