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

Commit

Permalink
fix: 添加 applets 依赖
Browse files Browse the repository at this point in the history
  • Loading branch information
wojiushixiaobai committed Apr 22, 2024
1 parent af12afd commit 3d92aa0
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 7 deletions.
15 changes: 10 additions & 5 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ jobs:
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}

- name: Login to FIT2CLOUD Container Registry
uses: docker/login-action@v3
with:
Expand Down Expand Up @@ -60,7 +60,7 @@ jobs:
outputs: type=image,oci-mediatypes=true,compression=zstd,compression-level=3,force-compression=true
cache-from: type=gha
cache-to: type=gha,mode=max

- name: Create Tag
run: |
git config --global user.name "${GITHUB_ACTOR}"
Expand All @@ -75,16 +75,21 @@ jobs:
gh release create ${{ steps.get-version.outputs.version }} --notes "Release ${{ steps.get-version.outputs.version }}" || echo "Release already exists"
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

- name: Setup Gitea Private Key
uses: webfactory/[email protected]
with:
ssh-private-key: ${{ secrets.SSH_PRIVATE_KEY }}


- 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: 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 3d92aa0

Please sign in to comment.