Resolve the plugin and SDKs from Gitea
PluginDownloadURL moves off github:// to a templated Gitea release URL.
Pulumi interpolates ${VERSION}, then appends
pulumi-resource-dokploy-v<version>-<os>-<arch>.tar.gz -- which is what
the GoReleaser archive template already produces. Schema, bridge
metadata and all four SDKs regenerated to carry it.
Releases publish to this instance's npm, PyPI, NuGet and Go registries
using the GITEA_TOKEN that Gitea injects, so no secrets need
configuring.
The Go SDK keeps its github.com module path, which is exactly why it
goes to Gitea's Go registry: pointing GOPROXY there is what makes that
path resolve at all. Verified locally by serving the module zip from a
file proxy and building a consumer against it -- note zip -D, without
which go get rejects the archive's directory entries.
This commit is contained in:
@@ -1,7 +1,12 @@
|
||||
# Builds the provider plugin for every platform Pulumi supports and publishes
|
||||
# the archives to a GitHub release. The archive names must match what
|
||||
# `PluginDownloadURL: github://api.github.com/maxvojtkov/pulumi-dokploy`
|
||||
# expects, so do not rename them.
|
||||
# the archives to a Gitea release.
|
||||
#
|
||||
# Pulumi fetches these itself, from the PluginDownloadURL baked into the
|
||||
# schema. Given
|
||||
# https://gitea.coolify.vojtkov.dev/usr_unknown/pulumi-dokploy/releases/download/v${VERSION}
|
||||
# it appends `pulumi-resource-dokploy-v<version>-<os>-<arch>.tar.gz`, which is
|
||||
# exactly what the archive name_template below produces. Rename one and you
|
||||
# must rename the other, or `pulumi up` fails with a 404 on plugin install.
|
||||
version: 2
|
||||
|
||||
project_name: pulumi-dokploy
|
||||
@@ -44,12 +49,20 @@ snapshot:
|
||||
version_template: "{{ .Version }}-SNAPSHOT"
|
||||
|
||||
changelog:
|
||||
use: github
|
||||
use: git
|
||||
sort: asc
|
||||
filters:
|
||||
exclude:
|
||||
- "^docs:"
|
||||
- "^chore:"
|
||||
- "^test:"
|
||||
|
||||
gitea_urls:
|
||||
api: https://gitea.coolify.vojtkov.dev/api/v1
|
||||
download: https://gitea.coolify.vojtkov.dev
|
||||
|
||||
release:
|
||||
gitea:
|
||||
owner: usr_unknown
|
||||
name: pulumi-dokploy
|
||||
prerelease: auto
|
||||
|
||||
Reference in New Issue
Block a user