diff --git a/.gitea/workflows/gitea-build.yaml b/.gitea/workflows/gitea-build.yaml index 770da09..2edfff5 100644 --- a/.gitea/workflows/gitea-build.yaml +++ b/.gitea/workflows/gitea-build.yaml @@ -22,19 +22,19 @@ jobs: uses: https://github.com/docker/setup-buildx-action@v3 with: config-inline: | - [registry."gitea.sanplex.tech/sansan"] + [registry."gitea.sanplex.xyz/sansan"] http = true insecure = true - - name: Login to Gitea - uses: docker/login-action@v2 - with: - registry: gitea.sanplex.tech - username: ${{ github.repository_owner }} - password: ${{ secrets.TOKEN }} - - name: Build - uses: https://github.com/docker/build-push-action@v5 - with: - context: . - file: ./Dockerfile - push: false - #tags: "gitea.sanplex.tech/sansan/musicserver:${{gitea.ref_name}}, gitea.sanplex.tech/sansan/musicserver:latest" + - name: Login to Gitea + uses: docker/login-action@v2 + with: + registry: gitea.sanplex.xyz + username: ${{ github.repository_owner }} + password: ${{ secrets.TOKEN }} + - name: Build + uses: https://github.com/docker/build-push-action@v5 + with: + context: . + file: ./Dockerfile + push: false + #tags: "gitea.sanplex.xyz/sansan/musicserver:${{gitea.ref_name}}, gitea.sanplex.xyz/sansan/musicserver:latest" diff --git a/.gitea/workflows/gitea-release.yaml b/.gitea/workflows/gitea-release.yaml index bb97078..bf31d65 100644 --- a/.gitea/workflows/gitea-release.yaml +++ b/.gitea/workflows/gitea-release.yaml @@ -23,19 +23,19 @@ jobs: uses: https://github.com/docker/setup-buildx-action@v3 with: config-inline: | - [registry."gitea.sanplex.tech/sansan"] + [registry."gitea.sanplex.xyz/sansan"] http = true insecure = true - - name: Login to Gitea - uses: docker/login-action@v2 - with: - registry: gitea.sanplex.tech - username: ${{ github.repository_owner }} - password: ${{ secrets.TOKEN }} - - name: Build and push Docker image - uses: https://github.com/docker/build-push-action@v5 - with: - context: . - file: ./Dockerfile - push: true - tags: "gitea.sanplex.tech/sansan/musicserver:${{gitea.ref_name}}, gitea.sanplex.tech/sansan/musicserver:latest" + - name: Login to Gitea + uses: docker/login-action@v2 + with: + registry: gitea.sanplex.xyz + username: ${{ github.repository_owner }} + password: ${{ secrets.TOKEN }} + - name: Build and push Docker image + uses: https://github.com/docker/build-push-action@v5 + with: + context: . + file: ./Dockerfile + push: true + tags: "gitea.sanplex.xyz/sansan/musicserver:${{gitea.ref_name}}, gitea.sanplex.xyz/sansan/musicserver:latest" diff --git a/internal/backend/download.go b/internal/backend/download.go index e36af6e..e51986d 100644 --- a/internal/backend/download.go +++ b/internal/backend/download.go @@ -21,7 +21,7 @@ type assetResponse struct { } func CheckLatest() string { - resp, err := http.Get("https://gitea.sanplex.tech/api/v1/repos/sansan/MusicPlayer/releases/latest") + resp, err := http.Get("https://gitea.sanplex.xyz/api/v1/repos/sansan/MusicPlayer/releases/latest") if err != nil { log.Fatalln(err) } @@ -38,7 +38,7 @@ func CheckLatest() string { } func ListAssetsOfLatest() []string { - resp, err := http.Get("https://gitea.sanplex.tech/api/v1/repos/sansan/MusicPlayer/releases/latest") + resp, err := http.Get("https://gitea.sanplex.xyz/api/v1/repos/sansan/MusicPlayer/releases/latest") if err != nil { log.Fatalln(err) } @@ -60,7 +60,7 @@ func ListAssetsOfLatest() []string { } func DownloadLatestWindows() string { - resp, err := http.Get("https://gitea.sanplex.tech/api/v1/repos/sansan/MusicPlayer/releases/latest") + resp, err := http.Get("https://gitea.sanplex.xyz/api/v1/repos/sansan/MusicPlayer/releases/latest") if err != nil { log.Fatalln(err) } @@ -83,7 +83,7 @@ func DownloadLatestWindows() string { } func DownloadLatestLinux() string { - resp, err := http.Get("https://gitea.sanplex.tech/api/v1/repos/sansan/MusicPlayer/releases/latest") + resp, err := http.Get("https://gitea.sanplex.xyz/api/v1/repos/sansan/MusicPlayer/releases/latest") if err != nil { log.Fatalln(err) }