diff --git a/.gitea/workflows/release.yml b/.gitea/workflows/release.yml index 54efe8d..751890f 100644 --- a/.gitea/workflows/release.yml +++ b/.gitea/workflows/release.yml @@ -40,6 +40,7 @@ jobs: env: GORELEASER_FORCE_TOKEN: gitea GITEA_TOKEN: ${{ secrets.RELEASE_TOKEN }} + GITEA_API_URL: http://gitea:3000/api/v1 docker: runs-on: ubuntu-latest diff --git a/.goreleaser.yaml b/.goreleaser.yaml index d7992c5..ec50e70 100644 --- a/.goreleaser.yaml +++ b/.goreleaser.yaml @@ -1,7 +1,7 @@ version: 2 gitea_urls: - api: https://gitea.lerkolabs.com/api/v1 + api: "{{ if index .Env \"GITEA_API_URL\" }}{{ .Env.GITEA_API_URL }}{{ else }}https://gitea.lerkolabs.com/api/v1{{ end }}" download: https://gitea.lerkolabs.com release: