-
-
Notifications
You must be signed in to change notification settings - Fork 6
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
Showing
18 changed files
with
720 additions
and
650 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 |
---|---|---|
@@ -0,0 +1,9 @@ | ||
[bumpversion] | ||
current_version = 0.1.3 | ||
parse = (?P<major>\d+)\.(?P<minor>\d+)\.(?P<patch>\d+) | ||
serialize = | ||
{major}.{minor}.{patch} | ||
|
||
[bumpversion:file:pyproject.toml] | ||
|
||
[bumpversion:file:syftbox/__version__.py] |
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 |
---|---|---|
@@ -0,0 +1,37 @@ | ||
name: CD - Deploy SyftBox Server | ||
|
||
on: | ||
workflow_dispatch: | ||
inputs: | ||
version: | ||
description: "SyftBox Version to deploy" | ||
type: string | ||
default: latest | ||
|
||
# Prevents concurrent runs of the same workflow | ||
# while the previous run is still in progress | ||
concurrency: | ||
group: "CD - Deploy SyftBox Server" | ||
cancel-in-progress: false | ||
|
||
jobs: | ||
|
||
deploy-syftbox-server: | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- name: Install Just | ||
uses: extractions/setup-just@v2 | ||
with: | ||
just-version: "1.36.0" | ||
|
||
- name: Set up SSH | ||
run: | | ||
mkdir -p ~/.ssh | ||
echo "${{ secrets.SYFTBOX_SERVER_PRIVATE_KEY }}" > ~/.ssh/syftbox.pem | ||
chmod 600 ~/.ssh/syftbox.pem | ||
ssh-keyscan -H "20.168.10.234" >> ~/.ssh/known_hosts | ||
- name: Deploy SyftBox Server | ||
run: | | ||
just deploy ~/.ssh/syftbox.pem ${{ inputs.version }} |
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 |
---|---|---|
@@ -0,0 +1,88 @@ | ||
name: CD - SyftBox | ||
|
||
on: | ||
workflow_dispatch: | ||
inputs: | ||
bump_type: | ||
description: "Version bump type" | ||
type: choice | ||
default: patch | ||
options: | ||
- patch | ||
- minor | ||
- major | ||
|
||
test_bump: | ||
description: "Perform a test bump version without pushing to pypi and repo" | ||
type: boolean | ||
default: false | ||
|
||
skip_tests: | ||
description: "If true, skip pre-release tests" | ||
required: false | ||
default: "false" | ||
type: choice | ||
options: | ||
- "false" | ||
- "true" | ||
|
||
# Prevents concurrent runs of the same workflow | ||
# while the previous run is still in progress | ||
concurrency: | ||
group: "CD - SyftBox" | ||
cancel-in-progress: false | ||
|
||
jobs: | ||
call-pr-tests: | ||
if: ${{ inputs.skip_tests == 'false' }} | ||
uses: ./.github/workflows/pr-tests.yaml | ||
|
||
|
||
deploy-syftbox: | ||
needs: [call-pr-tests] | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- name: Checkout SyftBox repo with github token | ||
uses: actions/checkout@v4 | ||
with: | ||
token: ${{ secrets.SYFTBOX_BOT_COMMIT_TOKEN }} | ||
|
||
- name: Configure git user | ||
run: | | ||
git config user.name "${{ secrets.OM_BOT_NAME }}" | ||
git config user.email "${{ secrets.OM_BOT_EMAIL }}" | ||
- name: Set up Python | ||
uses: actions/setup-python@v5 | ||
with: | ||
python-version: "3.12" | ||
|
||
- name: Install dependencies | ||
run: | | ||
python -m pip install --upgrade pip | ||
pip install uv==0.4.19 twine | ||
uv --version | ||
- name: Install Just | ||
uses: extractions/setup-just@v2 | ||
with: | ||
just-version: "1.36.0" | ||
|
||
- name: Bump the Version | ||
run: | | ||
just bump-version ${{ inputs.bump_type }} | ||
- name: Build syftbox | ||
run: | | ||
just build | ||
- name: Push to pypi | ||
if: ${{ inputs.test_bump == false }} | ||
run: | | ||
twine upload -u __token__ -p ${{ secrets.OM_SYFTBOX_PYPI_TOKEN }} dist/* | ||
- name: Push changes to SyftBox repo | ||
if: ${{ inputs.test_bump == false }} | ||
run: | | ||
git push origin |
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
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
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
This file was deleted.
Oops, something went wrong.
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
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 |
---|---|---|
@@ -1 +0,0 @@ | ||
__version__ = "0.1.0" | ||
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 |
---|---|---|
@@ -0,0 +1,11 @@ | ||
# ____ __ _ ____ | ||
# / ___| _ _ / _| |_| __ ) _____ __ | ||
# \___ \| | | | |_| __| _ \ / _ \ \/ / | ||
# ___) | |_| | _| |_| |_) | (_) > < | ||
# |____/ \__, |_| \__|____/ \___/_/\_\ | ||
# |___/ | ||
|
||
__title__ = "SyftBox" | ||
__description__ = "" | ||
__url__ = "https://openmined.org" | ||
__version__ = "0.1.3" |
Oops, something went wrong.