Skip to content

fix: Update phone number in the WhatsApp link #4

fix: Update phone number in the WhatsApp link

fix: Update phone number in the WhatsApp link #4

Workflow file for this run

name: Deploy NextJS
on:
push:
branches:
- main
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v3
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v2
- name: Log in to Docker Hub
uses: docker/login-action@v2
with:
username: ${{ secrets.DOCKER_USERNAME }}
password: ${{ secrets.DOCKER_PASSWORD }}
- name: Build and push Docker image
uses: docker/build-push-action@v4
with:
context: .
push: true
tags: ${{secrets.DOCKER_USERNAME}}/${{github.event.repository.name}}:latest
build-args: |
APP_URL=${{ vars.APP_URL }}
deploy:
runs-on: ubuntu-latest
needs: build
steps:
- name: Deploy on VPS
uses: appleboy/ssh-action@v0.1.10
with:
host: ${{ secrets.HOST_IP }}
username: ${{ secrets.HOST_USERNAME }}
password: ${{ secrets.HOST_PASSWORD }}
port: ${{ secrets.HOST_PORT }}
script: |
cd /media/${{github.event.repository.name}}
docker compose pull
docker compose down
docker compose up -d