chore: realizando deploy automaticamente em produção
Some checks failed
Release Drafter / update_release_draft (push) Failing after 20s
Some checks failed
Release Drafter / update_release_draft (push) Failing after 20s
This commit is contained in:
12
.github/workflows/on_release.yml
vendored
12
.github/workflows/on_release.yml
vendored
@@ -41,6 +41,18 @@ jobs:
|
|||||||
push: true
|
push: true
|
||||||
tags: ${{ steps.meta.outputs.tags }}
|
tags: ${{ steps.meta.outputs.tags }}
|
||||||
labels: ${{ steps.meta.outputs.labels }}
|
labels: ${{ steps.meta.outputs.labels }}
|
||||||
|
- name: executing remote ssh commands using password
|
||||||
|
uses: appleboy/ssh-action@master
|
||||||
|
with:
|
||||||
|
host: ${{ secrets.SSH_HOST }}
|
||||||
|
username: ${{ secrets.SSH_USERNAME }}
|
||||||
|
password: ${{ secrets.SSH_PASSWORD }}
|
||||||
|
port: ${{ secrets.SSH_PORT }}
|
||||||
|
script: |
|
||||||
|
cd /media/data/apps/mines-frontend
|
||||||
|
docker pull redbeard/mines-frontend:latest
|
||||||
|
docker-compose up -d frontend
|
||||||
|
docker image prune -f
|
||||||
- name: Build finished
|
- name: Build finished
|
||||||
if: success()
|
if: success()
|
||||||
uses: voxmedia/github-action-slack-notify-build@v1
|
uses: voxmedia/github-action-slack-notify-build@v1
|
||||||
|
|||||||
Reference in New Issue
Block a user