Skip to content

Commit

Permalink
Merge pull request #89 from wzshiming/refactoring-using-kit
Browse files Browse the repository at this point in the history
Update to use kit
  • Loading branch information
wzshiming authored Nov 1, 2021
2 parents a26a5ff + d34b6bc commit 4a2f977
Show file tree
Hide file tree
Showing 99 changed files with 333 additions and 1,172 deletions.
62 changes: 0 additions & 62 deletions .github/workflows/releases-binaries.yml

This file was deleted.

11 changes: 0 additions & 11 deletions .github/workflows/releases-images.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,17 +12,6 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Cache workdir
uses: actions/cache@v2
env:
cache-name: workdir
with:
path: |
workdir
/tmp/kubernetes-lts/
key: ${{ runner.os }}-build-${{ env.cache-name }}-image
restore-keys: |
${{ runner.os }}-build-${{ env.cache-name }}
- name: Install dependent
run: |
make dependent
Expand Down
43 changes: 43 additions & 0 deletions .github/workflows/releases-package.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
name: Releases Packages

on:
push:
tags:
- v*

workflow_dispatch:

jobs:
Build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Install dependent
run: |
make dependent
- name: Checkout
run: |
make $(basename ${GITHUB_REF})
- name: Build binaries
run: |
make build-binaries
- name: Package rpm
run: |
make pkg-rpm
- name: Sync repository
env:
BRANCH_PREFIX: "rpm-"
REPOS: "rpm"
run: |
GH_TOKEN="${GH_TOKEN:-${{ secrets.GITHUB_TOKEN }}}" SOURCE="${SOURCE:-https://github.com/${{ github.repository }}}" make repos-sync
- name: Package deb
run: |
make pkg-deb
- name: Sync repository
env:
BRANCH_PREFIX: "deb-"
REPOS: "deb"
run: |
GH_TOKEN="${GH_TOKEN:-${{ secrets.GITHUB_TOKEN }}}" SOURCE="${SOURCE:-https://github.com/${{ github.repository }}}" make repos-sync
Loading

0 comments on commit 4a2f977

Please sign in to comment.