mirror of
https://github.com/Websoft9/websoft9.git
synced 2024-11-21 23:20:23 +00:00
ci flow
This commit is contained in:
parent
59d76e93da
commit
2ba11515fd
3 changed files with 13 additions and 8 deletions
9
.github/workflows/developer_ci.yml
vendored
9
.github/workflows/developer_ci.yml
vendored
|
@ -66,10 +66,11 @@ jobs:
|
|||
- name: Checkout source branch
|
||||
run: git checkout ${{ steps.source_commit.outputs.commit }}
|
||||
|
||||
- name: Install
|
||||
- name: Install appstore
|
||||
run: |
|
||||
wget https://websoft9.github.io/websoft9/install/install.sh && bash install.sh online
|
||||
# override cockpit.conf, w9services
|
||||
sed -i '/#####ci-section#####/a rm -f /etc/cockpit/cockpit.conf && cp cockpit/cockpit.conf /etc/cockpit/cockpit.conf && rm -f /data/apps/w9services && cp -r docker /data/apps/w9services' install/install.sh
|
||||
|
||||
- name: Test
|
||||
- name: Test appmanage API
|
||||
run: |
|
||||
echo "Test"
|
||||
echo "Start to test appmanage API"
|
||||
|
|
8
.github/workflows/push.yml
vendored
8
.github/workflows/push.yml
vendored
|
@ -13,6 +13,10 @@ jobs:
|
|||
- name: Checkout code
|
||||
uses: actions/checkout@v2
|
||||
|
||||
- name: Install
|
||||
- name: Install appstore
|
||||
run: |
|
||||
wget https://websoft9.github.io/websoft9/install/install.sh && bash install.sh online
|
||||
cd install && bash install.sh
|
||||
|
||||
- name: Test appmanage API
|
||||
run: |
|
||||
echo "Start to test appmanage API"
|
||||
|
|
|
@ -376,6 +376,8 @@ sudo sed -i 's/ListenStream=9090/ListenStream=9000/' /lib/systemd/system/cockpit
|
|||
# configure cockpit
|
||||
cp /data/apps/websoft9/cockpit/cockpit.conf /etc/cockpit/cockpit.conf
|
||||
|
||||
#####ci-section#####
|
||||
|
||||
sudo systemctl restart cockpit
|
||||
sudo systemctl daemon-reload
|
||||
sudo systemctl enable --now cockpit
|
||||
|
@ -383,8 +385,6 @@ sudo systemctl enable --now cockpit.socket
|
|||
sudo systemctl restart cockpit.socket
|
||||
sudo systemctl restart cockpit
|
||||
|
||||
#####ci-section#####
|
||||
|
||||
}
|
||||
|
||||
StartAppMng(){
|
||||
|
|
Loading…
Reference in a new issue