[${{ steps.vars.outputs.version }} = $(grep '"version":' package.json | grep -o "[0-9.]*") ] || (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
with:
dockerfile:Dockerfile
repository:${{ github.repository }}
cache_froms:${{ github.repository }}:latest
tag_with_ref:true
tags:latest
username:${{ secrets.DOCKER_USERNAME }}
password:${{ secrets.DOCKER_TOKEN }}
- name:Telegram Notification
uses:appleboy/telegram-action@0.0.7
with:
message:🚀 Published a [${{ steps.vars.outputs.repo_name }}](https://github.com/${{ github.repository }}) version [${{ steps.vars.outputs.version }}](https://hub.docker.com/repository/docker/${{ github.repository }}) to docker hub