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 fd25940 commit 619ce97
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/build-tele.yml
Original file line number Diff line number Diff line change
Expand Up @@ -50,8 +50,8 @@ jobs:
- name: SSH into the server and update the code
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"
"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"
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
Expand Up @@ -51,9 +51,9 @@ jobs:
- name: SSH into the server and update the code
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/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"
env:
SERVER_USERNAME: ${{ secrets.SERVER_USERNAME }}
SERVER_IP: ${{ secrets.SERVER_IP }}
1 change: 1 addition & 0 deletions cmd/app/handlers/video_handler.go
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,7 @@ 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 @@ -61,7 +61,6 @@ func main() {
continue
}


text := "Title: " + video.Title + "\n" +
"Views: " + strconv.FormatInt(video.Views, 10) + "\n" +
"Uploaded: " + time.Unix(video.UploadedAt, 0).Format("02.01.2006") + "\n" +
Expand Down

0 comments on commit 619ce97

Please sign in to comment.