-
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
Showing
10 changed files
with
540 additions
and
0 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,53 @@ | ||
name: release-main | ||
|
||
on: | ||
push: | ||
branches: | ||
- release | ||
|
||
jobs: | ||
on-success: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: checkout | ||
uses: actions/checkout@v2 | ||
|
||
- name: deploy | ||
uses: cross-the-world/ssh-scp-ssh-pipelines@v1.1.4 | ||
env: | ||
TARGET_DIR: /home/main | ||
VENV_BIN: venv/bin | ||
with: | ||
host: ${{ secrets.EPSA_SSH_HOST }} | ||
user: main | ||
pass: ${{ secrets.SSH_PASSWORD_MAIN }} | ||
port: 22 | ||
connect_timeout: 10s | ||
first_ssh: |- | ||
mkdir -p logs | ||
test -d venv || python3.11 -m venv venv | ||
scp: |- | ||
'./epsilion_wars_mmorpg_automation/*' => $TARGET_DIR/epsilion_wars_mmorpg_automation/ | ||
./poetry.lock => $TARGET_DIR | ||
./pyproject.toml => $TARGET_DIR | ||
./README.md => $TARGET_DIR | ||
last_ssh: |- | ||
$VENV_BIN/pip install --no-cache-dir poetry pip setuptools --upgrade | ||
$VENV_BIN/poetry config virtualenvs.create false --local | ||
$VENV_BIN/poetry install --only main | ||
$VENV_BIN/pip cache purge | ||
echo 'telegram_api_id=${{ secrets.TELEGRAM_API_ID_MAIN }}' > .env | ||
echo 'telegram_api_hash=${{ secrets.TELEGRAM_API_HASH_MAIN }}' >> .env | ||
echo 'anti_captcha_com_apikey=${{ secrets.ANTI_CAPTCHA_APIKEY }}' >> .env | ||
echo 'minimum_hp_level_for_grinding=90' >> .env | ||
echo 'stop_if_equip_broken=false' >> .env | ||
echo 'notifications_enabled=false' >> .env | ||
echo 'select_combo_strategy=tuned' >> .env | ||
echo 'repair_locations_path="Троглодитов"' >> .env | ||
supervisorctl stop main:main-grinder | ||
supervisorctl stop main:main-fisher | ||
supervisorctl restart main:main-farmer |
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,53 @@ | ||
name: release-twink#1 | ||
|
||
on: | ||
push: | ||
branches: | ||
- release | ||
|
||
jobs: | ||
on-success: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: checkout | ||
uses: actions/checkout@v2 | ||
|
||
- name: deploy | ||
uses: cross-the-world/ssh-scp-ssh-pipelines@v1.1.4 | ||
env: | ||
TARGET_DIR: /home/twink1 | ||
VENV_BIN: venv/bin | ||
with: | ||
host: ${{ secrets.EPSA_SSH_HOST }} | ||
user: twink1 | ||
pass: ${{ secrets.SSH_PASSWORD_TWINK1 }} | ||
port: 22 | ||
connect_timeout: 10s | ||
first_ssh: |- | ||
mkdir -p logs | ||
test -d venv || python3.11 -m venv venv | ||
scp: |- | ||
'./epsilion_wars_mmorpg_automation/*' => $TARGET_DIR/epsilion_wars_mmorpg_automation/ | ||
./poetry.lock => $TARGET_DIR | ||
./pyproject.toml => $TARGET_DIR | ||
./README.md => $TARGET_DIR | ||
last_ssh: |- | ||
$VENV_BIN/pip install --no-cache-dir poetry pip setuptools --upgrade | ||
$VENV_BIN/poetry config virtualenvs.create false --local | ||
$VENV_BIN/poetry install --only main | ||
$VENV_BIN/pip cache purge | ||
echo 'telegram_api_id=${{ secrets.TELEGRAM_API_ID_TWINK1 }}' > .env | ||
echo 'telegram_api_hash=${{ secrets.TELEGRAM_API_HASH_TWINK1 }}' >> .env | ||
echo 'anti_captcha_com_apikey=${{ secrets.ANTI_CAPTCHA_APIKEY }}' >> .env | ||
echo 'minimum_hp_level_for_grinding=95' >> .env | ||
echo 'stop_if_equip_broken=false' >> .env | ||
echo 'notifications_enabled=false' >> .env | ||
echo 'select_combo_strategy=tuned' >> .env | ||
echo 'repair_locations_path="северный порт"' >> .env | ||
supervisorctl stop twink1:twink1-grinder | ||
supervisorctl stop twink1:twink1-fisher | ||
supervisorctl restart twink1:twink1-farmer |
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,54 @@ | ||
name: release-twink#2 | ||
|
||
on: | ||
push: | ||
branches: | ||
- release | ||
|
||
jobs: | ||
on-success: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: checkout | ||
uses: actions/checkout@v2 | ||
|
||
- name: deploy | ||
uses: cross-the-world/ssh-scp-ssh-pipelines@v1.1.4 | ||
env: | ||
TARGET_DIR: /home/twink2 | ||
VENV_BIN: venv/bin | ||
with: | ||
host: ${{ secrets.EPSA_SSH_HOST }} | ||
user: twink2 | ||
pass: ${{ secrets.SSH_PASSWORD_TWINK2 }} | ||
port: 22 | ||
connect_timeout: 10s | ||
first_ssh: |- | ||
mkdir -p logs | ||
test -d venv || python3.11 -m venv venv | ||
scp: |- | ||
'./epsilion_wars_mmorpg_automation/*' => $TARGET_DIR/epsilion_wars_mmorpg_automation/ | ||
./poetry.lock => $TARGET_DIR | ||
./pyproject.toml => $TARGET_DIR | ||
./README.md => $TARGET_DIR | ||
last_ssh: |- | ||
$VENV_BIN/pip install --no-cache-dir poetry pip setuptools --upgrade | ||
$VENV_BIN/poetry config virtualenvs.create false --local | ||
$VENV_BIN/poetry install --only main | ||
$VENV_BIN/pip cache purge | ||
echo 'telegram_api_id=${{ secrets.TELEGRAM_API_ID_TWINK2 }}' > .env | ||
echo 'telegram_api_hash=${{ secrets.TELEGRAM_API_HASH_TWINK2 }}' >> .env | ||
echo 'anti_captcha_com_apikey=${{ secrets.ANTI_CAPTCHA_APIKEY }}' >> .env | ||
echo 'minimum_hp_level_for_grinding=85' >> .env | ||
echo 'stop_if_equip_broken=false' >> .env | ||
echo 'notifications_enabled=false' >> .env | ||
echo 'slow_mode=true' >> .env | ||
echo 'select_random_combo=false' >> .env | ||
echo 'message_log_limit=300' >> .env | ||
supervisorctl stop twink2:twink2-grinder | ||
supervisorctl restart twink2:twink2-fisher | ||
supervisorctl stop twink2:twink2-farmer |
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,54 @@ | ||
name: release-twink#3 | ||
|
||
on: | ||
push: | ||
branches: | ||
- release | ||
|
||
jobs: | ||
on-success: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: checkout | ||
uses: actions/checkout@v2 | ||
|
||
- name: deploy | ||
uses: cross-the-world/ssh-scp-ssh-pipelines@v1.1.4 | ||
env: | ||
TARGET_DIR: /home/twink3 | ||
VENV_BIN: venv/bin | ||
with: | ||
host: ${{ secrets.EPSA_SSH_HOST }} | ||
user: twink3 | ||
pass: ${{ secrets.SSH_PASSWORD_TWINK3 }} | ||
port: 22 | ||
connect_timeout: 10s | ||
first_ssh: |- | ||
mkdir -p logs | ||
test -d venv || python3.11 -m venv venv | ||
scp: |- | ||
'./epsilion_wars_mmorpg_automation/*' => $TARGET_DIR/epsilion_wars_mmorpg_automation/ | ||
./poetry.lock => $TARGET_DIR | ||
./pyproject.toml => $TARGET_DIR | ||
./README.md => $TARGET_DIR | ||
last_ssh: |- | ||
$VENV_BIN/pip install --no-cache-dir poetry pip setuptools --upgrade | ||
$VENV_BIN/poetry config virtualenvs.create false --local | ||
$VENV_BIN/poetry install --only main | ||
$VENV_BIN/pip cache purge | ||
echo 'telegram_api_id=${{ secrets.TELEGRAM_API_ID_TWINK3 }}' > .env | ||
echo 'telegram_api_hash=${{ secrets.TELEGRAM_API_HASH_TWINK3 }}' >> .env | ||
echo 'anti_captcha_com_apikey=${{ secrets.ANTI_CAPTCHA_APIKEY }}' >> .env | ||
echo 'minimum_hp_level_for_grinding=85' >> .env | ||
echo 'stop_if_equip_broken=false' >> .env | ||
echo 'notifications_enabled=false' >> .env | ||
echo 'slow_mode=true' >> .env | ||
echo 'select_random_combo=false' >> .env | ||
echo 'message_log_limit=300' >> .env | ||
supervisorctl stop twink3:twink3-grinder | ||
supervisorctl restart twink3:twink3-fisher | ||
supervisorctl stop twink3:twink3-farmer |
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,54 @@ | ||
name: release-twink#4 | ||
|
||
on: | ||
push: | ||
branches: | ||
- release | ||
|
||
jobs: | ||
on-success: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: checkout | ||
uses: actions/checkout@v2 | ||
|
||
- name: deploy | ||
uses: cross-the-world/ssh-scp-ssh-pipelines@v1.1.4 | ||
env: | ||
TARGET_DIR: /home/twink4 | ||
VENV_BIN: venv/bin | ||
with: | ||
host: ${{ secrets.EPSA_SSH_HOST }} | ||
user: twink4 | ||
pass: ${{ secrets.SSH_PASSWORD_TWINK4 }} | ||
port: 22 | ||
connect_timeout: 10s | ||
first_ssh: |- | ||
mkdir -p logs | ||
test -d venv || python3.11 -m venv venv | ||
scp: |- | ||
'./epsilion_wars_mmorpg_automation/*' => $TARGET_DIR/epsilion_wars_mmorpg_automation/ | ||
./poetry.lock => $TARGET_DIR | ||
./pyproject.toml => $TARGET_DIR | ||
./README.md => $TARGET_DIR | ||
last_ssh: |- | ||
$VENV_BIN/pip install --no-cache-dir poetry pip setuptools --upgrade | ||
$VENV_BIN/poetry config virtualenvs.create false --local | ||
$VENV_BIN/poetry install --only main | ||
$VENV_BIN/pip cache purge | ||
echo 'telegram_api_id=${{ secrets.TELEGRAM_API_ID_TWINK4 }}' > .env | ||
echo 'telegram_api_hash=${{ secrets.TELEGRAM_API_HASH_TWINK4 }}' >> .env | ||
echo 'anti_captcha_com_apikey=${{ secrets.ANTI_CAPTCHA_APIKEY }}' >> .env | ||
echo 'minimum_hp_level_for_grinding=90' >> .env | ||
echo 'stop_if_equip_broken=false' >> .env | ||
echo 'notifications_enabled=false' >> .env | ||
echo 'slow_mode=true' >> .env | ||
echo 'select_random_combo=false' >> .env | ||
echo 'message_log_limit=300' >> .env | ||
supervisorctl stop twink4:twink4-grinder | ||
supervisorctl restart twink4:twink4-fisher | ||
supervisorctl stop twink4:twink4-farmer |
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,54 @@ | ||
name: release-twink#5 | ||
|
||
on: | ||
push: | ||
branches: | ||
- release | ||
|
||
jobs: | ||
on-success: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: checkout | ||
uses: actions/checkout@v2 | ||
|
||
- name: deploy | ||
uses: cross-the-world/ssh-scp-ssh-pipelines@v1.1.4 | ||
env: | ||
TARGET_DIR: /home/twink5 | ||
VENV_BIN: venv/bin | ||
with: | ||
host: ${{ secrets.EPSA_SSH_HOST }} | ||
user: twink5 | ||
pass: ${{ secrets.SSH_PASSWORD_TWINK5 }} | ||
port: 22 | ||
connect_timeout: 10s | ||
first_ssh: |- | ||
mkdir -p logs | ||
test -d venv || python3.11 -m venv venv | ||
scp: |- | ||
'./epsilion_wars_mmorpg_automation/*' => $TARGET_DIR/epsilion_wars_mmorpg_automation/ | ||
./poetry.lock => $TARGET_DIR | ||
./pyproject.toml => $TARGET_DIR | ||
./README.md => $TARGET_DIR | ||
last_ssh: |- | ||
$VENV_BIN/pip install --no-cache-dir poetry pip setuptools --upgrade | ||
$VENV_BIN/poetry config virtualenvs.create false --local | ||
$VENV_BIN/poetry install --only main | ||
$VENV_BIN/pip cache purge | ||
echo 'telegram_api_id=${{ secrets.TELEGRAM_API_ID_TWINK5 }}' > .env | ||
echo 'telegram_api_hash=${{ secrets.TELEGRAM_API_HASH_TWINK5 }}' >> .env | ||
echo 'anti_captcha_com_apikey=${{ secrets.ANTI_CAPTCHA_APIKEY }}' >> .env | ||
echo 'minimum_hp_level_for_grinding=90' >> .env | ||
echo 'stop_if_equip_broken=false' >> .env | ||
echo 'notifications_enabled=false' >> .env | ||
echo 'slow_mode=true' >> .env | ||
echo 'select_random_combo=false' >> .env | ||
echo 'message_log_limit=300' >> .env | ||
supervisorctl stop twink5:twink5-grinder | ||
supervisorctl restart twink5:twink5-fisher | ||
supervisorctl stop twink5:twink5-farmer |
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,56 @@ | ||
name: release-twink#6 | ||
|
||
on: | ||
push: | ||
branches: | ||
- release | ||
|
||
jobs: | ||
on-success: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: checkout | ||
uses: actions/checkout@v2 | ||
|
||
- name: deploy | ||
uses: cross-the-world/ssh-scp-ssh-pipelines@v1.1.4 | ||
env: | ||
TARGET_DIR: /home/twink6 | ||
VENV_BIN: venv/bin | ||
with: | ||
host: ${{ secrets.EPSA_SSH_HOST }} | ||
user: twink6 | ||
pass: ${{ secrets.SSH_PASSWORD_TWINK6 }} | ||
port: 22 | ||
connect_timeout: 10s | ||
first_ssh: |- | ||
mkdir -p logs | ||
test -d venv || python3.11 -m venv venv | ||
scp: |- | ||
'./epsilion_wars_mmorpg_automation/*' => $TARGET_DIR/epsilion_wars_mmorpg_automation/ | ||
./poetry.lock => $TARGET_DIR | ||
./pyproject.toml => $TARGET_DIR | ||
./README.md => $TARGET_DIR | ||
last_ssh: |- | ||
$VENV_BIN/pip install --no-cache-dir poetry pip setuptools --upgrade | ||
$VENV_BIN/poetry config virtualenvs.create false --local | ||
$VENV_BIN/poetry install --only main | ||
$VENV_BIN/pip cache purge | ||
echo 'telegram_api_id=${{ secrets.TELEGRAM_API_ID_TWINK6 }}' > .env | ||
echo 'telegram_api_hash=${{ secrets.TELEGRAM_API_HASH_TWINK6 }}' >> .env | ||
echo 'anti_captcha_com_apikey=${{ secrets.ANTI_CAPTCHA_APIKEY }}' >> .env | ||
echo 'minimum_hp_level_for_grinding=90' >> .env | ||
echo 'stop_if_equip_broken=false' >> .env | ||
echo 'notifications_enabled=false' >> .env | ||
echo 'slow_mode=false' >> .env | ||
echo 'message_log_limit=300' >> .env | ||
echo 'repair_locations_path=""' >> .env | ||
echo 'skip_random_vendor_stop_words=""' >> .env | ||
supervisorctl stop twink6:twink6-grinder | ||
supervisorctl stop twink6:twink6-fisher | ||
supervisorctl stop twink6:twink6-farmer | ||
supervisorctl restart twink6:twink6-hunter |
Oops, something went wrong.