diff --git a/.github/workflows/deployment.yml b/.github/workflows/deployment.yml new file mode 100644 index 0000000..92cd1c4 --- /dev/null +++ b/.github/workflows/deployment.yml @@ -0,0 +1,20 @@ +name: Deployment + +on: + workflow_dispatch: + workflow_run: + workflows: ["Docker Hub Publish"] + types: + - completed +jobs: + deploy: + name: Deploy + runs-on: ubuntu-latest + steps: + - name: executing deployment script + uses: appleboy/ssh-action@v0.1.10 + with: + host: ${{ secrets.DEPLOYMENT_HOST }} + username: ${{ secrets.DEPLOYMENT_USERNAME }} + password: ${{ secrets.DEPLOYMENT_PASSWORD }} + script: cd $HOME/${{ secrets.DEPLOYMENT_FOLDER }} && git pull && sudo systemctl restart ${{ secrets.DEPLOYMENT_SERVICE }} diff --git a/.github/workflows/docker-image.yml b/.github/workflows/docker-image.yml deleted file mode 100644 index d657a63..0000000 --- a/.github/workflows/docker-image.yml +++ /dev/null @@ -1,18 +0,0 @@ -name: Docker Image CI - -on: - push: - branches: [ "main" ] - pull_request: - branches: [ "main" ] - -jobs: - - build: - - runs-on: ubuntu-latest - - steps: - - uses: actions/checkout@v3 - - name: Build the Docker image - run: docker build . --file Dockerfile --tag my-image-name:$(date +%s) diff --git a/.github/workflows/docker-publish.yml b/.github/workflows/docker-publish.yml index 3fc1de1..df7b9e0 100644 --- a/.github/workflows/docker-publish.yml +++ b/.github/workflows/docker-publish.yml @@ -1,4 +1,4 @@ -name: Docker +name: Docker Hub Publish # This workflow uses actions that are not certified by GitHub. # They are provided by a third-party and are governed by diff --git a/README.md b/README.md index bf43bdb..cc5fbd4 100755 --- a/README.md +++ b/README.md @@ -1,19 +1,12 @@ # GreenGrassBot +[![Pylint](https://github.com/baidakovil/GreenGrassBot/actions/workflows/pylint-workflow.yml/badge.svg)](https://github.com/baidakovil/GreenGrassBot/actions/workflows/pylint-workflow.yml) [![Docker](https://github.com/baidakovil/GreenGrassBot/actions/workflows/docker-publish.yml/badge.svg)](https://github.com/baidakovil/GreenGrassBot/actions/workflows/docker-publish.yml) [![Deployment](https://github.com/baidakovil/GreenGrassBot/actions/workflows/deployment.yml/badge.svg)](https://github.com/baidakovil/GreenGrassBot/actions/workflows/deployment.yml) -![Pylint Automated Workflow](https://github.com/baidakovil/greengrassbot/actions/workflows/pylint-workflow_dispatch.yml/badge.svg) +#### Nice metrics: +![GitHub commit activity (branch)](https://img.shields.io/github/commit-activity/m/baidakovil/GreenGrassBot) - -## Nice and Bads - -| **What's nice** |**Nice metric** | -|---------------------------|---------------------------------------------------------------------------------------------------------------| -| I am the only contributor | ![GitHub commit activity (branch)](https://img.shields.io/github/commit-activity/m/baidakovil/GreenGrassBot)| - - -| **What's bad** |**Bad metric** | -|---------------------------|---------------------------------------------------------------------------------------------------------------| -| I am the only contributor | ![GitHub contributors](https://img.shields.io/github/contributors/baidakovil/GreenGrassBot) | +#### Metrics to make prettier: +![GitHub contributors](https://img.shields.io/github/contributors/baidakovil/GreenGrassBot) Green Grass Telegram Bot is a notificator abour music events.