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.
- Loading branch information
1 parent
af12afd
commit 3d92aa0
Showing
2 changed files
with
17 additions
and
7 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 |
---|---|---|
|
@@ -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: | ||
|
@@ -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}" | ||
|
@@ -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 | ||
|
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 | ||
|