mirror of
https://github.com/rancher/k3k.git
synced 2026-02-14 18:10:01 +00:00
Remove github workflow and add drone (#49)
This commit is contained in:
32
.github/workflows/chart.yml
vendored
32
.github/workflows/chart.yml
vendored
@@ -1,32 +0,0 @@
|
||||
name: Chart Release
|
||||
|
||||
on:
|
||||
push:
|
||||
branches:
|
||||
- main
|
||||
|
||||
jobs:
|
||||
release:
|
||||
permissions:
|
||||
contents: write
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- name: Checkout
|
||||
uses: actions/checkout@v3
|
||||
with:
|
||||
fetch-depth: 0
|
||||
|
||||
- name: Configure Git
|
||||
run: |
|
||||
git config user.name "$GITHUB_ACTOR"
|
||||
git config user.email "$GITHUB_ACTOR@users.noreply.github.com"
|
||||
|
||||
- name: Install Helm
|
||||
uses: azure/setup-helm@v3
|
||||
|
||||
- name: Run chart-releaser
|
||||
uses: helm/chart-releaser-action@v1.5.0
|
||||
with:
|
||||
charts_dir: charts
|
||||
env:
|
||||
CR_TOKEN: "${{ secrets.TOKEN }}"
|
||||
41
.github/workflows/release.yml
vendored
41
.github/workflows/release.yml
vendored
@@ -1,41 +0,0 @@
|
||||
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
|
||||
run: |
|
||||
cd /work && dapper ci
|
||||
- name: Publish Binaries
|
||||
uses: galal-hussein/docker-run-action@dev
|
||||
if: startsWith(github.ref, 'refs/tags/')
|
||||
with:
|
||||
registry: docker.io
|
||||
image: ibuildthecloud/github-release:v0.0.1
|
||||
options: -e GITHUB_TOKEN=${{ secrets.TOKEN }} -e GITHUB_RELEASE_PRERELEASE=true -e GITHUB_RELEASE_FILES='/work/bin/*' -v ${{ github.workspace }}:/work
|
||||
- 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