update build

This commit is contained in:
Danil Kovtonyuk 2021-06-10 20:06:48 +03:00
parent 7286aeaff0
commit a875bc77fa

@ -3,7 +3,7 @@ name: build
on:
push:
branches: ['*']
tags: ['v[0-9]+.[0-9]+.[0-9]+']
tags: ['v[0-9]+.[0-9]+.[0-9]+(-beta.[0-9]+)?']
pull_request:
jobs:
@ -43,7 +43,7 @@ jobs:
- name: Check package.json version vs tag
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
uses: docker/build-push-action@v1.1.0
@ -51,7 +51,7 @@ jobs:
dockerfile: Dockerfile
repository: tornadocash/relayer
tag_with_ref: true
tags: mining,candidate
tags: light
username: ${{ secrets.DOCKER_USERNAME }}
password: ${{ secrets.DOCKER_TOKEN }}
@ -64,17 +64,17 @@ jobs:
debug: true
format: markdown
- name: Telegram Relayer Channel Notification
uses: appleboy/telegram-action@0.0.7
with:
to: ${{ secrets.TELEGRAM_RELAYER_CHAT_ID }}
token: ${{ secrets.TELEGRAM_BOT_TOKEN }}
message: |
🚀 Published a new version of the relayer node service to docker hub: `tornadocash/relayer:v${{ steps.vars.outputs.version }}` and `tornadocash/relayer:mining`.
#- name: Telegram Relayer Channel Notification
# uses: appleboy/telegram-action@0.0.7
# with:
# to: ${{ secrets.TELEGRAM_RELAYER_CHAT_ID }}
# token: ${{ secrets.TELEGRAM_BOT_TOKEN }}
# message: |
# 🚀 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 ❗️
debug: true
format: markdown
#Please update your nodes ❗️
# debug: true
# format: markdown
- name: Telegram Failure Notification
uses: appleboy/telegram-action@0.0.7