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:
|
||||
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
|
||||
|
Loading…
Reference in New Issue
Block a user