-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #154 from RecursionSpace/dev-release
Dev release
- Loading branch information
Showing
43 changed files
with
1,218 additions
and
2,066 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 |
---|---|---|
|
@@ -2,7 +2,6 @@ | |
|
||
version: 2 | ||
updates: | ||
|
||
- package-ecosystem: "github-actions" | ||
directory: "/" | ||
schedule: | ||
|
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 |
---|---|---|
@@ -0,0 +1,102 @@ | ||
name: CD | Dev Release | ||
|
||
# Performs the task of merging from master to the dev-release branch. | ||
# Pings the server to pull an update once the dev-release branch has been merged. | ||
|
||
on: | ||
push: | ||
branches: [master] | ||
|
||
workflow_dispatch: | ||
|
||
jobs: | ||
|
||
merge: | ||
name: master -> master-ci | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- uses: actions/checkout@v3 | ||
|
||
- name: Wait on check | ||
uses: fountainhead/[email protected] | ||
id: wait-for-build | ||
|
||
with: | ||
token: ${{ secrets.GITHUB_TOKEN }} | ||
checkName: build | ||
ref: ${{ github.event.pull_request.head.sha || github.sha }} | ||
|
||
- name: Create Pull Request | ||
|
||
if: steps.wait-for-build.outputs.conclusion == 'success' | ||
uses: repo-sync/pull-request@v2 | ||
with: | ||
destination_branch: "master-ci" | ||
github_token: ${{ secrets.GITHUB_TOKEN }} | ||
|
||
- name: Merge master -> master-ci | ||
|
||
if: steps.wait-for-build.outputs.conclusion == 'success' | ||
uses: devmasx/[email protected] | ||
with: | ||
type: now | ||
target_branch: master-ci | ||
github_token: ${{ secrets.GITHUB_TOKEN }} | ||
|
||
|
||
|
||
# master-ci -> dev-release | ||
sanitize: | ||
name: master-ci -> dev-release | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- name: Checkout master-ci | ||
uses: actions/checkout@v3 | ||
with: | ||
ref: master-ci | ||
fetch-depth: 0 | ||
|
||
- name: Wait on Merge | ||
uses: fountainhead/[email protected] | ||
id: wait-for-merge | ||
with: | ||
token: ${{ secrets.GITHUB_TOKEN }} | ||
checkName: master -> master-ci | ||
ref: ${{ github.event.pull_request.head.sha || github.sha }} | ||
|
||
- name: Checkout dev-release | ||
uses: actions/checkout@v3 | ||
with: | ||
ref: dev-release | ||
fetch-depth: 0 | ||
|
||
- name: Remove Bloat | ||
id: remove-bloat | ||
if: steps.wait-for-merge.outputs.conclusion == 'success' | ||
run: | | ||
git config user.name github-actions | ||
git config user.email [email protected] | ||
git checkout dev-release | ||
git pull origin dev-release | ||
git merge origin/master-ci | ||
rm -rf LICENSE | ||
rm -rf README.md | ||
rm -rf docs | ||
rm -rf tests | ||
git add . | ||
git diff-index --quiet HEAD || git commit -m "Merge master-ci into dev-release and remove unnecessary files" | ||
git push origin dev-release | ||
- name: Webhook | ||
uses: distributhor/workflow-webhook@v3 | ||
env: | ||
webhook_url: "https://dev.recursion.space/webhooks/github/" | ||
webhook_secret: "Y0uR5ecr3t" |
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,46 @@ | ||
name: CI | E2E Integration | ||
|
||
on: | ||
push: | ||
branches: | ||
- '**' | ||
- '!master-ci' | ||
- '!release' | ||
|
||
pull_request: | ||
branches: | ||
- master | ||
|
||
workflow_dispatch: | ||
|
||
jobs: | ||
setup: | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- uses: actions/checkout@v3 | ||
|
||
- uses: webfactory/[email protected] | ||
with: | ||
ssh-private-key: ${{ secrets.RECURSION_SPACE_ACCESS_TOKEN}} | ||
|
||
- name: Setup Server | ||
run: | | ||
sudo apt-get update -y && sudo apt-get upgrade -y | ||
sudo apt install software-properties-common -y | ||
sudo add-apt-repository ppa:deadsnakes/ppa | ||
sudo apt install python3.11 -y | ||
cd /opt/ | ||
git clone --single-branch --branch release [email protected]:RecursionSpace/RecursionSpace.git | ||
sudo apt-get install python3.11-venv -y | ||
sudo python3.11 -m venv /opt/RecursionSpace/env | ||
source /opt/RecursionSpace/env/bin/activate | ||
/opt/RecursionSpace/env/bin/python3.11 -m pip install --upgrade pip | ||
sudo pip install --no-input -U -r /opt/RecursionSpace/requirements.txt --no-cache-dir | ||
cd /opt/RecursionSpace/ | ||
sudo python manage.py migrate --noinput |
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
13 changes: 10 additions & 3 deletions
13
.github/workflows/ShellCheck.yml → .github/workflows/CI_ShellCheck.yml
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,19 +1,26 @@ | ||
name: Script Check | ||
name: CI | Script Check | ||
|
||
on: | ||
push: | ||
branches: | ||
- '**' | ||
- 'master' | ||
- '!master-ci' | ||
- '!release' | ||
|
||
pull_request: | ||
branches: | ||
- master | ||
- main | ||
|
||
workflow_dispatch: | ||
|
||
|
||
jobs: | ||
lint: | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- uses: actions/checkout@v2 | ||
- uses: actions/checkout@v3 | ||
|
||
- name: Run Shellcheck | ||
uses: azohra/shell-linter@latest |
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,16 @@ | ||
name: CI | Installer | ||
|
||
on: [push] | ||
|
||
jobs: | ||
install: | ||
|
||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- uses: actions/checkout@v3 | ||
|
||
- name: Run Installer | ||
run: | | ||
sudo chmod +x installer.sh | ||
sudo ./installer.sh |
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 |
---|---|---|
@@ -0,0 +1,35 @@ | ||
name: CI | Verify Bash Installer | ||
|
||
on: | ||
push: | ||
branches: | ||
- '**' | ||
- 'master' | ||
- '!master-ci' | ||
- '!release' | ||
|
||
pull_request: | ||
branches: | ||
- master | ||
|
||
workflow_dispatch: | ||
|
||
|
||
jobs: | ||
install: | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- uses: actions/checkout@v3 | ||
|
||
- name: Run Bash Installer | ||
run: | | ||
sudo /bin/bash installer.sh | ||
sudo systemd-analyze verify openpod.service | ||
# - name: Validate JSON | ||
# uses: limitusus/json-syntax-check@v1 | ||
# env: | ||
# BASE: '/opt/OpenPod' | ||
# with: | ||
# pattern: "\\.json$" |
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
Oops, something went wrong.