mirror of
https://github.com/Ysurac/openmptcprouter-feeds.git
synced 2025-03-09 15:40:03 +00:00
fix
This commit is contained in:
parent
bf39aca9c6
commit
aac120ffca
2 changed files with 69 additions and 7 deletions
62
netmaker-openwrt/.github/workflows/build_openwrt_ipk.yaml
vendored
Normal file
62
netmaker-openwrt/.github/workflows/build_openwrt_ipk.yaml
vendored
Normal file
|
@ -0,0 +1,62 @@
|
||||||
|
name: 'Build docker image'
|
||||||
|
on:
|
||||||
|
# Auto build on push to main branch
|
||||||
|
push:
|
||||||
|
paths-ignore:
|
||||||
|
- “README.md”
|
||||||
|
- ".gitignore"
|
||||||
|
- "LICENSE"
|
||||||
|
branches:
|
||||||
|
- main
|
||||||
|
# Auto build @ every day 6:00am
|
||||||
|
schedule:
|
||||||
|
- cron: '0 6 * * *'
|
||||||
|
jobs:
|
||||||
|
openwrt-builder-ipk:
|
||||||
|
name: 'Build ipk for openwrt branches'
|
||||||
|
strategy:
|
||||||
|
matrix:
|
||||||
|
branch: ["openwrt-18.06", "openwrt-19.07", "openwrt-21.02", "master"]
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
# Use the Bash shell regardless whether the GitHub Actions runner is ubuntu-latest, macos-latest, or windows-latest
|
||||||
|
defaults:
|
||||||
|
run:
|
||||||
|
shell: bash
|
||||||
|
steps:
|
||||||
|
- run: echo "🎉 The job was automatically triggered by a ${{ github.event_name }} event."
|
||||||
|
- run: echo "🐧 This job is now running on a ${{ runner.os }} server hosted by GitHub!"
|
||||||
|
- run: echo "🔎 The name of your branch is ${{ github.ref }} and your repository is ${{ github.repository }}."
|
||||||
|
- run: echo "Building ${{ matrix.branch }} branch."
|
||||||
|
|
||||||
|
# Checkout the repository to the GitHub Actions runner
|
||||||
|
- name: 'Checkout the repository to the GitHub Actions runner'
|
||||||
|
uses: actions/checkout@v2
|
||||||
|
|
||||||
|
# Set up QEMU
|
||||||
|
- name: 'Set up QEMU'
|
||||||
|
uses: docker/setup-qemu-action@v1
|
||||||
|
|
||||||
|
# Login to DockerHub with username and token
|
||||||
|
- name: Login to DockerHub with username and token
|
||||||
|
uses: docker/login-action@v1
|
||||||
|
with:
|
||||||
|
username: ${{ secrets.DOCKERHUB_USERNAME }}
|
||||||
|
password: ${{ secrets.DOCKERHUB_TOKEN }}
|
||||||
|
|
||||||
|
# Build image and push to DockerHub
|
||||||
|
- name: 'Build image DockerHub'
|
||||||
|
run: |
|
||||||
|
echo "Building ${{ matrix.branch }} branch."
|
||||||
|
|
||||||
|
# build ipk
|
||||||
|
docker run -t --rm -e OPENWRT_BRANCH="${{ matrix.branch }}" -v `pwd`:/src sbilly/openwrt-builder:latest /bin/bash /src/scripts/build_ipk.sh ${{ matrix.branch }}
|
||||||
|
|
||||||
|
# Upload release
|
||||||
|
- name: Upload binaries to release
|
||||||
|
uses: svenstaro/upload-release-action@v2
|
||||||
|
with:
|
||||||
|
repo_token: ${{ secrets.TOKEN }}
|
||||||
|
file: bin/*.ipk
|
||||||
|
tag: ${{ github.ref }}
|
||||||
|
overwrite: true
|
||||||
|
file_glob: true
|
|
@ -1,5 +1,5 @@
|
||||||
#
|
#
|
||||||
# Copyright (C) 2019 suyuan <175338101@qqcom>
|
# Copyright (C) 2019 sbilly <superli_1980@hotmail.com>
|
||||||
#
|
#
|
||||||
# This is free software, licensed under the MIT License.
|
# This is free software, licensed under the MIT License.
|
||||||
# See /LICENSE for more information.
|
# See /LICENSE for more information.
|
||||||
|
@ -8,18 +8,18 @@
|
||||||
include $(TOPDIR)/rules.mk
|
include $(TOPDIR)/rules.mk
|
||||||
|
|
||||||
PKG_NAME:=netmaker
|
PKG_NAME:=netmaker
|
||||||
PKG_VERSION:=0.16.0
|
PKG_VERSION:=0.9.4
|
||||||
PKG_RELEASE:=1
|
PKG_RELEASE:=1
|
||||||
|
|
||||||
PKG_SOURCE_PROTO:=git
|
PKG_SOURCE_PROTO:=git
|
||||||
PKG_SOURCE_URL:=https://github.com/gravitl/netmaker.git
|
PKG_SOURCE_URL:=https://github.com/gravitl/netmaker.git
|
||||||
PKG_SOURCE_VERSION:=db3288782965a7d4713cf271c1277957749802d1
|
PKG_SOURCE_VERSION:=e9bce264719f88c30e252ecc754d08f422f4c080
|
||||||
PKG_SOURCE_DATE:=20220930
|
PKG_SOURCE_DATE:=20220117
|
||||||
PKG_MIRROR_HASH:=skip
|
PKG_MIRROR_HASH:=skip
|
||||||
|
|
||||||
PKG_LICENSE:=MIT
|
PKG_LICENSE:=MIT
|
||||||
PKG_LICENSE_FILES:=LICENSE
|
PKG_LICENSE_FILES:=LICENSE
|
||||||
PKG_MAINTAINER:=suyuan <175338101@qqcom>
|
PKG_MAINTAINER:=sbilly <superli_1980@hotmail.com>
|
||||||
|
|
||||||
PKG_BUILD_DEPENDS:=golang/host
|
PKG_BUILD_DEPENDS:=golang/host
|
||||||
PKG_BUILD_PARALLEL:=1
|
PKG_BUILD_PARALLEL:=1
|
||||||
|
@ -31,7 +31,7 @@ GO_PKG_EXCLUDES:=excluded
|
||||||
GO_PKG_LDFLAGS:=-s -w
|
GO_PKG_LDFLAGS:=-s -w
|
||||||
|
|
||||||
include $(INCLUDE_DIR)/package.mk
|
include $(INCLUDE_DIR)/package.mk
|
||||||
include $(TOPDIR)/feeds/openmptcprouter/golang/golang-package.mk
|
include $(TOPDIR)/feeds/packages/lang/golang/golang-package.mk
|
||||||
|
|
||||||
define Package/netmaker
|
define Package/netmaker
|
||||||
$(call Package/netmaker/Default)
|
$(call Package/netmaker/Default)
|
||||||
|
@ -45,7 +45,7 @@ define Package/netmaker/Default
|
||||||
TITLE:=Netmaker for OpenWRT
|
TITLE:=Netmaker for OpenWRT
|
||||||
URL:=https://github.com/gravitl/netmaker
|
URL:=https://github.com/gravitl/netmaker
|
||||||
DEPENDS:=$(GO_ARCH_DEPENDS)
|
DEPENDS:=$(GO_ARCH_DEPENDS)
|
||||||
MAINTAINER:=suyuan <175338101@qqcom>
|
MAINTAINER:=sbilly <superli_1980@hotmail.com>
|
||||||
endef
|
endef
|
||||||
|
|
||||||
define Package/netmaker/Default/description
|
define Package/netmaker/Default/description
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue