Skip to content

Commit

Permalink
try workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
thedmdim committed May 15, 2024
1 parent db5a784 commit fd25940
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 7 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/build-tele.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: build image, publish and deploy
name: build and deploy telegram bot

on:
push:
Expand Down Expand Up @@ -51,7 +51,7 @@ jobs:
run: |
ssh $SERVER_USERNAME@$SERVER_IP \
"wget -qO - https://raw.githubusercontent.com/thedmdim/ytstalker/master/docker-compose.yml > /root/ytstalker/docker-compose.yml
&& docker compose -f /root/ytstalker/docker-compose.yml up --pull always -d tele"
& docker compose -f /root/ytstalker/docker-compose.yml up --pull always -d tele"
env:
SERVER_USERNAME: ${{ secrets.SERVER_USERNAME }}
SERVER_IP: ${{ secrets.SERVER_IP }}
6 changes: 3 additions & 3 deletions .github/workflows/build-web.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: build image, publish and deploy
name: build and deploy web app

on:
push:
Expand Down Expand Up @@ -52,8 +52,8 @@ jobs:
run: |
ssh $SERVER_USERNAME@$SERVER_IP \
"wget -qO - https://raw.githubusercontent.com/thedmdim/ytstalker/master/docker-compose.yml > /root/ytstalker/docker-compose.yml
&& wget -qO - https://raw.githubusercontent.com/thedmdim/ytstalker/master/Caddyfile > /root/ytstalker/Caddyfile
&& docker compose -f /root/ytstalker/docker-compose.yml up --pull always -d app caddy"
& wget -qO - https://raw.githubusercontent.com/thedmdim/ytstalker/master/Caddyfile > /root/ytstalker/Caddyfile
& docker compose -f /root/ytstalker/docker-compose.yml up --pull always -d app caddy"
env:
SERVER_USERNAME: ${{ secrets.SERVER_USERNAME }}
SERVER_IP: ${{ secrets.SERVER_IP }}
1 change: 0 additions & 1 deletion cmd/app/handlers/video_handler.go
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,6 @@ func (s *Router) GetVideo(w http.ResponseWriter, r *http.Request) {
w.WriteHeader(http.StatusBadGateway)
return
}

res.Reactions, _ = GetReaction(conn, res.Video.ID)
encoder.Encode(res)
}
1 change: 0 additions & 1 deletion cmd/tele/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -157,7 +157,6 @@ func main() {

var ErrNoSession = errors.New("no session found")


func GetKeyboard(year int) echotron.InlineKeyboardMarkup {

firstRow := make([]echotron.InlineKeyboardButton, 0, 3)
Expand Down

0 comments on commit fd25940

Please sign in to comment.