update build

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

View File

@ -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