Skip to content

replace k8s.gcr.io by registry.k8s.io #66

replace k8s.gcr.io by registry.k8s.io

replace k8s.gcr.io by registry.k8s.io #66

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: Config Github
run: |
git config --global user.email "noreply@github.com"
git config --global user.name "GitHub"
- 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