mirror of
https://github.com/Ysurac/openmptcprouter-feeds.git
synced 2025-03-09 15:40:03 +00:00
Update main.yml
This commit is contained in:
parent
b82e047370
commit
a7b04620ab
1 changed files with 8 additions and 8 deletions
16
.github/workflows/main.yml
vendored
16
.github/workflows/main.yml
vendored
|
@ -29,8 +29,8 @@ jobs:
|
||||||
REPO_URL: https://github.com/ysurac/openmptcprouter
|
REPO_URL: https://github.com/ysurac/openmptcprouter
|
||||||
SOURCE_NAME: ${{ steps.branch_name.outputs.SOURCE_NAME }}
|
SOURCE_NAME: ${{ steps.branch_name.outputs.SOURCE_NAME }}
|
||||||
run: |
|
run: |
|
||||||
git clone --depth 1 $REPO_URL openmptcprouter
|
git clone --depth 1 $REPO_URL omr
|
||||||
cd openmptcprouter
|
cd omr
|
||||||
if [ "$SOURCE_NAME" != "Test-Github-Actions" ] && [ "$SOURCE_NAME" != "develop" ]; then
|
if [ "$SOURCE_NAME" != "Test-Github-Actions" ] && [ "$SOURCE_NAME" != "develop" ]; then
|
||||||
git checkout master
|
git checkout master
|
||||||
else
|
else
|
||||||
|
@ -38,7 +38,7 @@ jobs:
|
||||||
fi
|
fi
|
||||||
git pull
|
git pull
|
||||||
- name: Build toolchain
|
- name: Build toolchain
|
||||||
working-directory: ./openmptcprouter
|
working-directory: ./omr
|
||||||
env:
|
env:
|
||||||
OMR_FEED_URL: https://github.com/ysurac/openmptcprouter-feeds
|
OMR_FEED_URL: https://github.com/ysurac/openmptcprouter-feeds
|
||||||
SOURCE_NAME: ${{ steps.branch_name.outputs.SOURCE_NAME }}
|
SOURCE_NAME: ${{ steps.branch_name.outputs.SOURCE_NAME }}
|
||||||
|
@ -48,13 +48,13 @@ jobs:
|
||||||
#echo -e "${{ secrets.OMR_PRIVKEY }}" > $OMR_TARGET/source/key-build
|
#echo -e "${{ secrets.OMR_PRIVKEY }}" > $OMR_TARGET/source/key-build
|
||||||
#echo -e "${{ secrets.OMR_PUBKEY }}" > $OMR_TARGET/source/key-build.pub
|
#echo -e "${{ secrets.OMR_PUBKEY }}" > $OMR_TARGET/source/key-build.pub
|
||||||
- name: Build packages
|
- name: Build packages
|
||||||
working-directory: ./openmptcprouter
|
working-directory: ./omr
|
||||||
env:
|
env:
|
||||||
OMR_TARGET: ${{ matrix.OMR_TARGET }}
|
OMR_TARGET: ${{ matrix.OMR_TARGET }}
|
||||||
run: |
|
run: |
|
||||||
make IGNORE_ERRORS=m -C $OMR_TARGET/source package/{compile,install,index} -j$(nproc) || make IGNORE_ERRORS=m -C $OMR_TARGET/source package/{compile,install,index} -j1 V=s
|
make IGNORE_ERRORS=m -C $OMR_TARGET/source package/{compile,install,index} -j$(nproc) || make IGNORE_ERRORS=m -C $OMR_TARGET/source package/{compile,install,index} -j1 V=s
|
||||||
- name: Build image
|
- name: Build image
|
||||||
working-directory: ./openmptcprouter
|
working-directory: ./omr
|
||||||
env:
|
env:
|
||||||
OMR_TARGET: ${{ matrix.OMR_TARGET }}
|
OMR_TARGET: ${{ matrix.OMR_TARGET }}
|
||||||
run: |
|
run: |
|
||||||
|
@ -63,7 +63,7 @@ jobs:
|
||||||
uses: actions/upload-artifact@v2
|
uses: actions/upload-artifact@v2
|
||||||
with:
|
with:
|
||||||
name: ${{ matrix.OMR_TARGET }}
|
name: ${{ matrix.OMR_TARGET }}
|
||||||
path: ./openmptcprouter/${{ matrix.OMR_TARGET }}/source/bin
|
path: ./omr/${{ matrix.OMR_TARGET }}/source/bin
|
||||||
- if: steps.branch_name.outputs.SOURCE_BRANCH == ''
|
- if: steps.branch_name.outputs.SOURCE_BRANCH == ''
|
||||||
name: Deploy - Create directory
|
name: Deploy - Create directory
|
||||||
uses: fifsky/ssh-action@master
|
uses: fifsky/ssh-action@master
|
||||||
|
@ -98,7 +98,7 @@ jobs:
|
||||||
with:
|
with:
|
||||||
switches: -av --delete-after
|
switches: -av --delete-after
|
||||||
remote_path: deploy/release/${{env.SOURCE_TAG}}/${{matrix.OMR_TARGET}}
|
remote_path: deploy/release/${{env.SOURCE_TAG}}/${{matrix.OMR_TARGET}}
|
||||||
path: ./openmptcprouter/${{matrix.OMR_TARGET}}/source/bin/
|
path: ./omr/${{matrix.OMR_TARGET}}/source/bin/
|
||||||
remote_key: ${{ secrets.PRIVATE_KEY }}
|
remote_key: ${{ secrets.PRIVATE_KEY }}
|
||||||
remote_user: deploy
|
remote_user: deploy
|
||||||
remote_host: ${{ secrets.OMR_DEPLOY_HOST }}
|
remote_host: ${{ secrets.OMR_DEPLOY_HOST }}
|
||||||
|
@ -113,7 +113,7 @@ jobs:
|
||||||
with:
|
with:
|
||||||
switches: -av --delete-after
|
switches: -av --delete-after
|
||||||
remote_path: deploy/${{env.SOURCE_BRANCH}}/${{env.OMR_KERNEL}}/${{matrix.OMR_TARGET}}
|
remote_path: deploy/${{env.SOURCE_BRANCH}}/${{env.OMR_KERNEL}}/${{matrix.OMR_TARGET}}
|
||||||
path: ./openmptcprouter/${{matrix.OMR_TARGET}}/source/bin/
|
path: ./omr/${{matrix.OMR_TARGET}}/source/bin/
|
||||||
remote_key: ${{ secrets.PRIVATE_KEY }}
|
remote_key: ${{ secrets.PRIVATE_KEY }}
|
||||||
remote_user: deploy
|
remote_user: deploy
|
||||||
remote_host: ${{ secrets.OMR_DEPLOY_HOST }}
|
remote_host: ${{ secrets.OMR_DEPLOY_HOST }}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue