fix: docker build

This commit is contained in:
langhuihui
2025-05-20 09:36:11 +08:00
parent 7a7e461f77
commit e8a1e9e014
3 changed files with 4 additions and 3 deletions

View File

@@ -17,4 +17,5 @@ COPY example/default/config.yaml /etc/monibuca/config.yaml
EXPOSE 6000 8080 8443 1935 554 5060 9000-20000
EXPOSE 5060/udp 44944/udp
CMD [ "./monibuca_linux", "-c", "/etc/monibuca/config.yaml" ]
ENTRYPOINT [ "./monibuca_linux"]
CMD ["-c", "/etc/monibuca/config.yaml"]

View File

@@ -406,7 +406,7 @@ func (t *WebHookTask) Start() error {
return nil
}
func (t *WebHookTask) Run() error {
func (t *WebHookTask) Go() error {
req, err := http.NewRequest(t.conf.Method, t.conf.URL, bytes.NewBuffer(t.jsonData))
if err != nil {
return err

View File

@@ -1,6 +1,6 @@
#!/bin/sh
# 获取最新的 tag
LATEST_TAG=$(git describe --tags --abbrev=0)
LATEST_TAG=$(git describe --tags $(git rev-list --tags --max-count=1))
if [ -z "$LATEST_TAG" ]; then
echo "没有找到任何 tag."