This repository has been archived by the owner on Aug 8, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #39 from jumpserver/pr@dev@fix_applets_package
fix: 添加 applets 依赖
- Loading branch information
Showing
2 changed files
with
13 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -45,6 +45,11 @@ jobs: | |
- name: Prepare files | ||
run: | | ||
bash prepare.sh | ||
- name: Get pip_package.zip | ||
run: | | ||
applets_version=$(curl -s https://api.github.com/repos/jumpserver/applets/releases/latest | grep "tag_name" | awk '{print $2}' | sed 's/"//g' | sed 's/,//g') | ||
wget -qO opt/download/applets/pip_packages.zip https://github.com/jumpserver/applets/releases/download/${applets_version}/pip_packages.zip | ||
- name: Build and push | ||
uses: docker/build-push-action@v3 | ||
|
@@ -84,7 +89,7 @@ jobs: | |
- name: Sync to Gitea Repository | ||
run: | | ||
ssh -o StrictHostKeyChecking=no [email protected] || echo "" | ||
rm -rf .git || echo "" | ||
rm -rf .git opt/player || echo "" | ||
git clone --depth=1 [email protected]:jumpserver/web-static.git | ||
mv opt/* web-static/ | ||
cd web-static | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -6,7 +6,7 @@ on: | |
version: | ||
description: 'Build Version' | ||
required: true | ||
default: 'v1.1.1' | ||
default: 'v1.1.3' | ||
|
||
jobs: | ||
build: | ||
|
@@ -19,6 +19,11 @@ jobs: | |
run: | | ||
bash prepare.sh | ||
- name: Get pip_package.zip | ||
run: | | ||
applets_version=$(curl -s https://api.github.com/repos/jumpserver/applets/releases/latest | grep "tag_name" | awk '{print $2}' | sed 's/"//g' | sed 's/,//g') | ||
wget -qO opt/download/applets/pip_packages.zip https://github.com/jumpserver/applets/releases/download/${applets_version}/pip_packages.zip | ||
- name: Set git config | ||
run: | | ||
git config --global user.name "${GITHUB_ACTOR}" | ||
|
@@ -32,7 +37,7 @@ jobs: | |
- name: Sync to Gitea Repository | ||
run: | | ||
ssh -o StrictHostKeyChecking=no [email protected] || echo "" | ||
rm -rf .git || echo "" | ||
rm -rf .git opt/player || echo "" | ||
git clone --depth=1 [email protected]:jumpserver/web-static.git | ||
mv opt/* web-static/ | ||
cd web-static | ||
|