mirror of
https://github.com/Telecominfraproject/wlan-ap.git
synced 2025-10-29 01:22:25 +00:00
* update base 21.02 revision * update v5.10 support * fix captive portal * cleanup ucentral-* packages * update ucentral-* packages * cleanup profiles * fix worflow Signed-off-by: John Crispin <john@phrozen.org>
39 lines
1.4 KiB
YAML
39 lines
1.4 KiB
YAML
name: Build OpenWrt with OpenSync
|
|
|
|
on:
|
|
push:
|
|
branches: [ uCentral-* ]
|
|
|
|
jobs:
|
|
build:
|
|
runs-on: ubuntu-latest
|
|
strategy:
|
|
fail-fast: false
|
|
matrix:
|
|
target: ['cig_wf188', 'cig_wf194c', 'edgecore_eap101', 'edgecore_eap102', 'edgecore_ecs4100-12ph', 'edgecore_ecw5211', 'linksys_e8450', 'linksys_ea8300', 'zyxel_gs1900-10hp']
|
|
|
|
steps:
|
|
- uses: actions/checkout@v2
|
|
|
|
- name: Build image for ${{ matrix.target }}
|
|
id: build
|
|
run: |
|
|
git config --global user.email "you@example.com"
|
|
git config --global user.name "Your Name"
|
|
make -j TARGET=${{ matrix.target }}
|
|
|
|
- name: Package and upload image for ${{ matrix.target }}
|
|
env:
|
|
GH_BUILD_USERNAME: ${{ secrets.GH_BUILD_USERNAME }}
|
|
GH_BUILD_PASSWORD: ${{ secrets.GH_BUILD_PASSWORD }}
|
|
ARTIFACTORY_USERNAME: cicd-indoor-main
|
|
ARTIFACTORY_PASSWORD: ${{ secrets.ARTIFACTORY_PASSWORD }}
|
|
run: |
|
|
BRANCH=$(git rev-parse --abbrev-ref HEAD)
|
|
LOWERCASE_TARGET=`echo ${{ matrix.target }} | tr '[:upper:]' '[:lower:]'`
|
|
HASH=$(git rev-parse --short HEAD)
|
|
TAR_NAME="$LOWERCASE_TARGET-$BRANCH-$HASH.tar.gz"
|
|
ls openwrt/bin/targets/
|
|
tar cfz "$TAR_NAME" -C openwrt/bin/targets/ .
|
|
curl -u $GH_BUILD_USERNAME:$GH_BUILD_PASSWORD -T "$TAR_NAME" "https://tip.jfrog.io/artifactory/tip-wlan-ap-firmware/uCentral/$LOWERCASE_TARGET/"$TAR_NAME""
|