Skip to content
This repository has been archived by the owner on Aug 8, 2024. It is now read-only.

Commit

Permalink
Merge pull request #39 from jumpserver/pr@dev@fix_applets_package
Browse files Browse the repository at this point in the history
fix: 添加 applets 依赖
  • Loading branch information
wojiushixiaobai authored Apr 22, 2024
2 parents af12afd + ae82a9a commit e751a69
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 3 deletions.
7 changes: 6 additions & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down
9 changes: 7 additions & 2 deletions .github/workflows/sync-gitea.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ on:
version:
description: 'Build Version'
required: true
default: 'v1.1.1'
default: 'v1.1.3'

jobs:
build:
Expand All @@ -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}"
Expand All @@ -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
Expand Down

0 comments on commit e751a69

Please sign in to comment.