-
Notifications
You must be signed in to change notification settings - Fork 69
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 #968 from guydavis/develop
Latest from development
- Loading branch information
Showing
19 changed files
with
461 additions
and
29 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,51 @@ | ||
name: develop-achi | ||
|
||
on: | ||
push: | ||
branches: | ||
- 'develop' | ||
|
||
jobs: | ||
docker: | ||
runs-on: ubuntu-20.04 | ||
steps: | ||
- | ||
name: Checkout | ||
uses: actions/checkout@v3 | ||
- | ||
name: Set up QEMU | ||
uses: docker/setup-qemu-action@v2 | ||
- | ||
name: Set up Docker Buildx | ||
uses: docker/setup-buildx-action@v2 | ||
- | ||
name: Login to DockerHub | ||
uses: docker/login-action@v2 | ||
with: | ||
username: ${{ secrets.DOCKERHUB_USERNAME }} | ||
password: ${{ secrets.DOCKERHUB_TOKEN }} | ||
- | ||
name: Login to GitHub Container Registry | ||
uses: docker/login-action@v2 | ||
with: | ||
registry: ghcr.io | ||
username: ${{ github.repository_owner }} | ||
password: ${{ secrets.GITHUB_TOKEN }} | ||
- | ||
name: Build and push | ||
uses: docker/build-push-action@v4 | ||
with: | ||
file: docker/dockerfile | ||
context: . | ||
platforms: linux/amd64 | ||
provenance: false | ||
push: true | ||
build-args: | | ||
"UBUNTU_VER=focal" | ||
"MACHINARIS_STREAM=develop" | ||
"CHIADOG_BRANCH=dev" | ||
"FDCLI_BRANCH=dev" | ||
"ACHI_BRANCH=master" | ||
tags: | | ||
${{ secrets.DOCKERHUB_USERNAME }}/machinaris-achi:develop | ||
ghcr.io/${{ secrets.DOCKERHUB_USERNAME }}/machinaris-achi:develop |
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,52 @@ | ||
name: release-achi | ||
|
||
on: | ||
workflow_dispatch: | ||
inputs: | ||
version: | ||
description: 'Release Version' | ||
|
||
jobs: | ||
docker: | ||
runs-on: ubuntu-20.04 | ||
steps: | ||
- | ||
name: Checkout | ||
uses: actions/checkout@v3 | ||
- | ||
name: Set up QEMU | ||
uses: docker/setup-qemu-action@v2 | ||
- | ||
name: Set up Docker Buildx | ||
uses: docker/setup-buildx-action@v2 | ||
- | ||
name: Login to DockerHub | ||
uses: docker/login-action@v2 | ||
with: | ||
username: ${{ secrets.DOCKERHUB_USERNAME }} | ||
password: ${{ secrets.DOCKERHUB_TOKEN }} | ||
- | ||
name: Login to GitHub Container Registry | ||
uses: docker/login-action@v2 | ||
with: | ||
registry: ghcr.io | ||
username: ${{ github.repository_owner }} | ||
password: ${{ secrets.GITHUB_TOKEN }} | ||
- | ||
name: Build and push | ||
uses: docker/build-push-action@v4 | ||
with: | ||
file: docker/dockerfile | ||
context: . | ||
platforms: linux/amd64,linux/arm64 | ||
provenance: false | ||
push: true | ||
build-args: | | ||
"UBUNTU_VER=focal" | ||
"MACHINARIS_STREAM=latest" | ||
"ACHI_BRANCH=master" | ||
tags: | | ||
${{ secrets.DOCKERHUB_USERNAME }}/machinaris-achi:latest | ||
${{ secrets.DOCKERHUB_USERNAME }}/machinaris-achi:v${{ github.event.inputs.version }} | ||
ghcr.io/${{ secrets.DOCKERHUB_USERNAME }}/machinaris-achi:latest | ||
ghcr.io/${{ secrets.DOCKERHUB_USERNAME }}/machinaris-achi:v${{ github.event.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,50 @@ | ||
name: test-achi | ||
|
||
on: | ||
push: | ||
branches: | ||
- 'integration' | ||
|
||
jobs: | ||
docker: | ||
runs-on: ubuntu-20.04 | ||
steps: | ||
- | ||
name: Checkout | ||
uses: actions/checkout@v3 | ||
- | ||
name: Set up QEMU | ||
uses: docker/setup-qemu-action@v2 | ||
- | ||
name: Set up Docker Buildx | ||
uses: docker/setup-buildx-action@v2 | ||
- | ||
name: Login to DockerHub | ||
uses: docker/login-action@v2 | ||
with: | ||
username: ${{ secrets.DOCKERHUB_USERNAME }} | ||
password: ${{ secrets.DOCKERHUB_TOKEN }} | ||
- | ||
name: Login to GitHub Container Registry | ||
uses: docker/login-action@v2 | ||
with: | ||
registry: ghcr.io | ||
username: ${{ github.repository_owner }} | ||
password: ${{ secrets.GITHUB_TOKEN }} | ||
- | ||
name: Build and push | ||
uses: docker/build-push-action@v4 | ||
with: | ||
file: docker/dockerfile | ||
context: . | ||
platforms: linux/amd64,linux/arm64 | ||
provenance: false | ||
push: true | ||
build-args: | | ||
"UBUNTU_VER=focal" | ||
"MACHINARIS_STREAM=test" | ||
"CHIADOG_BRANCH=dev" | ||
"ACHI_BRANCH=master" | ||
tags: | | ||
${{ secrets.DOCKERHUB_USERNAME }}/machinaris-achi:test | ||
ghcr.io/${{ secrets.DOCKERHUB_USERNAME }}/machinaris-achi:test |
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 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 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,91 @@ | ||
# This is useful to differentiate multiple | ||
# instances monitoring multiple harvesters | ||
notification_title_prefix: '$HOSTNAME-achi' | ||
log_level: INFO | ||
coin_name: 'achi' | ||
coin_symbol: 'achi' | ||
|
||
# Only one consumer can be enabled at a time, you can | ||
# delete the section for the consumer which you aren't using | ||
# DON'T CHANGE file_path IT'S ALREADY SET IN-CONTAINER FOR MACHINARIS! | ||
chia_logs: | ||
file_log_consumer: | ||
enable: true | ||
prefix: 'achi' | ||
file_path: '~/.chia/achi/mainnet/log/debug.log' | ||
|
||
# Enable this and chiadog will ping a remote server every 5 minutes | ||
# That way you can know that the monitoring is running as expected | ||
#keep_alive_monitor: | ||
# enable_remote_ping: false | ||
# ping_url: '' | ||
|
||
# Enable this and you'll receive a daily summary notification | ||
# on your farm performance at the specified time of the day. | ||
daily_stats: | ||
enable: true | ||
time_of_day: 21 | ||
|
||
# We support a lot of notifiers, please check the README for more | ||
# information. You can delete the sections which you aren't using. | ||
# You can also enable more than one notifier and send different | ||
# notifications to each of them. E.g. enable daily_stats only to E-mail. | ||
# If you enable wallet_events you'll get notifications anytime your | ||
# wallet receives some XCH (e.g. farming reward). | ||
notifier: | ||
pushover: | ||
enable: false | ||
daily_stats: true | ||
wallet_events: true | ||
credentials: | ||
api_token: 'dummy_token' | ||
user_key: 'dummy_key' | ||
telegram: | ||
enable: false | ||
daily_stats: true | ||
wallet_events: true | ||
credentials: | ||
bot_token: 'dummy_bot_token' | ||
chat_id: 'dummy_chat_id' | ||
smtp: | ||
enable: false | ||
daily_stats: true | ||
wallet_events: true | ||
credentials: | ||
sender: '[email protected]' | ||
sender_name: 'Machinaris' | ||
recipient: '[email protected]' | ||
username_smtp: 'username' | ||
password_smtp: 'password' | ||
host: 'smtp.example.com' | ||
port: 587 | ||
script: | ||
# DON'T CHANGE THIS SCRIPT NOTIFIER, IT'S USED BY MACHINARIS! | ||
enable: true | ||
daily_stats: true | ||
wallet_events: true | ||
script_path: '/root/.chia/chiadog/notifier.sh' | ||
discord: | ||
enable: false | ||
daily_stats: true | ||
wallet_events: true | ||
credentials: | ||
webhook_url: 'https://discord.com/api/webhooks/...' | ||
slack: | ||
enable: false | ||
daily_stats: true | ||
wallet_events: true | ||
credentials: | ||
webhook_url: 'https://hooks.slack.com/services/...' | ||
mqtt: | ||
enable: false | ||
daily_stats: true | ||
wallet_events: true | ||
topic: achi/achidog/alert | ||
qos: 1 | ||
retain: false | ||
credentials: | ||
host: '192.168.0.10' | ||
port: 8883 | ||
username: '' | ||
password: '' |
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,26 @@ | ||
#!/bin/env bash | ||
# | ||
# Installs Achi as per https://github.com/Achi-Coin/achi-blockchain | ||
# | ||
|
||
ACHI_BRANCH=$1 | ||
# On 2024-02-08 | ||
HASH=e3ca475efb3d7267d3a2eedef8b4897d129aeb5d | ||
|
||
if [ -z ${ACHI_BRANCH} ]; then | ||
echo 'Skipping Achi install as not requested.' | ||
else | ||
git clone --branch ${ACHI_BRANCH} --recurse-submodules https://github.com/Achi-Coin/achi-blockchain.git /achi-blockchain | ||
cd /achi-blockchain | ||
git submodule update --init mozilla-ca | ||
git checkout $HASH | ||
chmod +x install.sh | ||
/usr/bin/sh ./install.sh | ||
|
||
if [ ! -d /chia-blockchain/venv ]; then | ||
cd / | ||
rmdir /chia-blockchain | ||
ln -s /achi-blockchain /chia-blockchain | ||
ln -s /achi-blockchain/venv/bin/achi /chia-blockchain/venv/bin/chia | ||
fi | ||
fi |
Oops, something went wrong.