update build
This commit is contained in:
parent
7286aeaff0
commit
a875bc77fa
26
.github/workflows/build.yml
vendored
26
.github/workflows/build.yml
vendored
@ -3,7 +3,7 @@ name: build
|
|||||||
on:
|
on:
|
||||||
push:
|
push:
|
||||||
branches: ['*']
|
branches: ['*']
|
||||||
tags: ['v[0-9]+.[0-9]+.[0-9]+']
|
tags: ['v[0-9]+.[0-9]+.[0-9]+(-beta.[0-9]+)?']
|
||||||
pull_request:
|
pull_request:
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
@ -43,7 +43,7 @@ jobs:
|
|||||||
|
|
||||||
- name: Check package.json version vs tag
|
- name: Check package.json version vs tag
|
||||||
run: |
|
run: |
|
||||||
[ ${{ steps.vars.outputs.version }} = $(grep '"version":' package.json | grep -o "[0-9.]*") ] || (echo "Git tag doesn't match version in package.json" && false)
|
[ ${{ steps.vars.outputs.version }} = $(sed -nE 's/^\s*"version": "([0-9]+.[0-9]+.[0-9]+(-beta.[0-9]+)?)",$/\1/p' package.json) ] || (echo "Git tag doesn't match version in package.json" && false)
|
||||||
|
|
||||||
- name: Build and push Docker image
|
- name: Build and push Docker image
|
||||||
uses: docker/build-push-action@v1.1.0
|
uses: docker/build-push-action@v1.1.0
|
||||||
@ -51,7 +51,7 @@ jobs:
|
|||||||
dockerfile: Dockerfile
|
dockerfile: Dockerfile
|
||||||
repository: tornadocash/relayer
|
repository: tornadocash/relayer
|
||||||
tag_with_ref: true
|
tag_with_ref: true
|
||||||
tags: mining,candidate
|
tags: light
|
||||||
username: ${{ secrets.DOCKER_USERNAME }}
|
username: ${{ secrets.DOCKER_USERNAME }}
|
||||||
password: ${{ secrets.DOCKER_TOKEN }}
|
password: ${{ secrets.DOCKER_TOKEN }}
|
||||||
|
|
||||||
@ -64,17 +64,17 @@ jobs:
|
|||||||
debug: true
|
debug: true
|
||||||
format: markdown
|
format: markdown
|
||||||
|
|
||||||
- name: Telegram Relayer Channel Notification
|
#- name: Telegram Relayer Channel Notification
|
||||||
uses: appleboy/telegram-action@0.0.7
|
# uses: appleboy/telegram-action@0.0.7
|
||||||
with:
|
# with:
|
||||||
to: ${{ secrets.TELEGRAM_RELAYER_CHAT_ID }}
|
# to: ${{ secrets.TELEGRAM_RELAYER_CHAT_ID }}
|
||||||
token: ${{ secrets.TELEGRAM_BOT_TOKEN }}
|
# token: ${{ secrets.TELEGRAM_BOT_TOKEN }}
|
||||||
message: |
|
# message: |
|
||||||
🚀 Published a new version of the relayer node service to docker hub: `tornadocash/relayer:v${{ steps.vars.outputs.version }}` and `tornadocash/relayer:mining`.
|
# 🚀 Published a new version of the relayer node service to docker hub: `tornadocash/relayer:v${{ steps.vars.outputs.version }}` and `tornadocash/relayer:mining`.
|
||||||
|
|
||||||
❗️Please update your nodes ❗️
|
# ❗️Please update your nodes ❗️
|
||||||
debug: true
|
# debug: true
|
||||||
format: markdown
|
# format: markdown
|
||||||
|
|
||||||
- name: Telegram Failure Notification
|
- name: Telegram Failure Notification
|
||||||
uses: appleboy/telegram-action@0.0.7
|
uses: appleboy/telegram-action@0.0.7
|
||||||
|
Loading…
Reference in New Issue
Block a user