Skip to content

Commit

Permalink
merge master
Browse files Browse the repository at this point in the history
  • Loading branch information
abdulgalimov committed Jul 12, 2023
2 parents 64b7316 + 7ad5590 commit 8189ca0
Show file tree
Hide file tree
Showing 11 changed files with 9,857 additions and 10,673 deletions.
27 changes: 27 additions & 0 deletions .env.example
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
# Account with money
SEED=//Alice

# Url where to contact by api
REST_URL=https://rest.opal.uniquenetwork.dev/v1

# telegram token for bot
TELEGRAM_TOKEN=<telegram:token>

# How much money to give out at a time
DROP_AMOUNT=100

# How often can you request money
CACHE_TTL=30

# A list of admin addresses, separated by "," - optional
ADMIN_ADDRESSES=

# redis part - optional
# host to connect redis
REDIS_HOST=

# port to connect redis, default 6379
REDIS_PORT=

# redis database number, default 0
REDIS_DB=
17 changes: 17 additions & 0 deletions .github/workflows/deploy-to-develop.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
name: Deploy to Develop cluster

on:
push:
branches:
- master
workflow_dispatch:

jobs:
run-gitlab-pipeline:
name: Run gitlab pipeline
runs-on: ubuntu-latest
steps:
- name: Trigger gitlab
uses: wei/curl@v1
with:
args: -X POST -F token=${{ secrets.UNIQUE_GITLAB_TOKEN }} -F ref=master -F variables[REMOTE_COMMIT]=${GITHUB_SHA} -F variables[DEPLOY_TO]=dev https://gitlab.uniquenetwork.dev/api/v4/projects/63/trigger/pipeline
14 changes: 14 additions & 0 deletions .github/workflows/deploy-to-prod-opal.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
name: Deploy to Prod Opal cluster

on:
workflow_dispatch:

jobs:
run-gitlab-pipeline:
name: Run gitlab pipeline
runs-on: ubuntu-latest
steps:
- name: Trigger gitlab
uses: wei/curl@v1
with:
args: -X POST -F token=${{ secrets.UNIQUE_GITLAB_TOKEN }} -F ref=master -F variables[REMOTE_COMMIT]=${GITHUB_SHA} -F variables[DEPLOY_TO]=prod-opal https://gitlab.uniquenetwork.dev/api/v4/projects/63/trigger/pipeline
Loading

0 comments on commit 8189ca0

Please sign in to comment.