-
Notifications
You must be signed in to change notification settings - Fork 8
36 lines (29 loc) · 900 Bytes
/
main.yml
File metadata and controls
36 lines (29 loc) · 900 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
name: Deploy Docker image
on:
push:
branches:
- main
jobs:
deploy:
runs-on: ubuntu-latest
steps:
- name: log into VPS and trigger deploy script
run: echo "Delete this"
# uses: appleboy/ssh-action@master
# with:
# host: ${{ secrets.HOST }}
# username: ${{ secrets.USERNAME }}
# key: ${{ secrets.key }}
# port: ${{ secrets.PORT }}
# script: |
# cd ${{ github.event.repository.name }}
# echo "Deploying changes..."
# # Pull changes from the live branch
# git pull
# # Build the image with the new changes
# docker build . -t bot
# # Shut down the existing containers
# docker-compose down
# # Start the new containers
# docker-compose up -d
# echo "Deployed!"