Repository navigation
feat: add DBX as the default database client plugin #7139
This file contains hidden or 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
| on: | |
| push: | |
| pull_request: | |
| types: [opened, synchronize, closed] | |
| release: | |
| types: [created, published] | |
| name: JumpServer repos generic handler | |
| jobs: | |
| handle_pull_request: | |
| if: github.event_name == 'pull_request' | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: jumpserver/action-generic-handler@master | |
| env: | |
| GITHUB_TOKEN: ${{ secrets.PRIVATE_TOKEN }} | |
| I18N_TOKEN: ${{ secrets.I18N_TOKEN }} | |
| handle_push: | |
| if: github.event_name == 'push' | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: jumpserver/action-generic-handler@master | |
| env: | |
| GITHUB_TOKEN: ${{ secrets.PRIVATE_TOKEN }} | |
| I18N_TOKEN: ${{ secrets.I18N_TOKEN }} | |
| handle_release: | |
| if: github.event_name == 'release' | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: jumpserver/action-generic-handler@master | |
| env: | |
| GITHUB_TOKEN: ${{ secrets.PRIVATE_TOKEN }} | |
| I18N_TOKEN: ${{ secrets.I18N_TOKEN }} | |
| sync_release_downloads: | |
| if: github.event_name == 'release' && github.event.action == 'published' | |
| runs-on: ubuntu-latest | |
| permissions: | |
| contents: read | |
| steps: | |
| - name: Download client release assets | |
| env: | |
| GH_TOKEN: ${{ github.token }} | |
| CLIENT_VERSION: ${{ github.event.release.tag_name }} | |
| run: | | |
| version="${CLIENT_VERSION#v}" | |
| mkdir -p release-assets | |
| mkdir -p upload/download/public | |
| mkdir -p upload/download/applets | |
| gh release download "$CLIENT_VERSION" \ | |
| --repo "$GITHUB_REPOSITORY" \ | |
| --pattern "JumpServer-${version}.exe" \ | |
| --pattern "JumpServer-${version}-arm64.dmg" \ | |
| --pattern "JumpServer-WebLite-${version}-x64.msi" \ | |
| --dir release-assets | |
| # Preserve legacy website download URLs in OSS only. | |
| cp \ | |
| "release-assets/JumpServer-${version}.exe" \ | |
| "upload/download/public/Client_${version}_x64-setup.exe" | |
| cp \ | |
| "release-assets/JumpServer-${version}-arm64.dmg" \ | |
| "upload/download/public/Client_${version}_aarch64.dmg" | |
| cp \ | |
| "release-assets/JumpServer-WebLite-${version}-x64.msi" \ | |
| "upload/download/applets/JumpServer-WebLite-${version}-x64.msi" | |
| ( | |
| cd upload/download/public | |
| sha256sum \ | |
| "Client_${version}_x64-setup.exe" \ | |
| "Client_${version}_aarch64.dmg" \ | |
| > "Client_${version}_SHA256SUMS" | |
| ) | |
| ( | |
| cd upload/download/applets | |
| sha256sum \ | |
| "JumpServer-WebLite-${version}-x64.msi" \ | |
| > "JumpServer-WebLite-${version}-x64_SHA256SUMS" | |
| ) | |
| - name: Install ossutil | |
| run: | | |
| set -o pipefail | |
| curl -fsSL https://gosspublic.alicdn.com/ossutil/install.sh | sudo bash | |
| - name: Upload client downloads | |
| env: | |
| OSS_ACCESS_KEY_ID: ${{ secrets.OSS_ACCESS_KEY_ID }} | |
| OSS_ACCESS_KEY_SECRET: ${{ secrets.OSS_ACCESS_KEY_SECRET }} | |
| run: | | |
| test -n "$OSS_ACCESS_KEY_ID" | |
| test -n "$OSS_ACCESS_KEY_SECRET" | |
| ossutil config \ | |
| -e oss-cn-beijing.aliyuncs.com \ | |
| -i "$OSS_ACCESS_KEY_ID" \ | |
| -k "$OSS_ACCESS_KEY_SECRET" \ | |
| -L EN \ | |
| -c ossutilconfig | |
| ossutil sync upload/ oss://jms-pkg/ -c ossutilconfig | |
| notify_client_release: | |
| needs: sync_release_downloads | |
| if: github.event_name == 'release' && github.event.action == 'published' | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Notify docker-web | |
| env: | |
| GH_TOKEN: ${{ secrets.PRIVATE_TOKEN }} | |
| CLIENT_VERSION: ${{ github.event.release.tag_name }} | |
| run: | | |
| jq -n \ | |
| --arg version "${CLIENT_VERSION#v}" \ | |
| '{event_type: "client-released", client_payload: {version: $version}}' \ | |
| > dispatch.json | |
| curl --fail --silent --show-error \ | |
| --request POST \ | |
| --header "Accept: application/vnd.github+json" \ | |
| --header "Authorization: Bearer ${GH_TOKEN}" \ | |
| --header "X-GitHub-Api-Version: 2022-11-28" \ | |
| https://api.github.com/repos/jumpserver/docker-web/dispatches \ | |
| --data @dispatch.json |