Skip to content

temp handle for #2885 whatsappwebjs issue #2

temp handle for #2885 whatsappwebjs issue

temp handle for #2885 whatsappwebjs issue #2

Workflow file for this run

name: Publish
on:
push:
branches:
- master
jobs:
build:
name: Build
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Publish
run: |
docker build -t ${{ vars.DOCKER_REGISTRY }}/wpp-bot:latest .
docker push ${{ vars.DOCKER_REGISTRY }}/wpp-bot:latest
deploy:
name: Deploy
runs-on: ubuntu-latest
needs: build
steps:
- name: Deploy
uses: appleboy/ssh-action@master
with:
host: ${{ secrets.SERVER_HOST }}
username: ${{ secrets.SERVER_USERNAME }}
password: ${{ secrets.SERVER_PASSWORD }}
script: |
cd ${{ vars.SERVER_PATH }}
docker-compose pull
docker-compose up -d