From a875bc77fafbed82bf364fb4fb406d1a9ad4cfe7 Mon Sep 17 00:00:00 2001 From: Danil Kovtonyuk Date: Thu, 10 Jun 2021 20:06:48 +0300 Subject: [PATCH] update build --- .github/workflows/build.yml | 26 +++++++++++++------------- 1 file changed, 13 insertions(+), 13 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index ebdee1c..e335505 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -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