Files
pulumi-dokploy/.goreleaser.yml
Max Vojtkov a44ebd4432
Some checks failed
build / build (push) Has been cancelled
release / plugin (push) Failing after 3m46s
release / sdks (push) Has been skipped
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.
2026-08-09 12:37:19 +03:00

69 lines
1.6 KiB
YAML

# Builds the provider plugin for every platform Pulumi supports and publishes
# 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
before:
hooks:
- go -C provider mod download
builds:
- id: pulumi-resource-dokploy
dir: provider
main: ./cmd/pulumi-resource-dokploy
binary: pulumi-resource-dokploy
env:
- CGO_ENABLED=0
flags:
- -trimpath
ldflags:
- -s -w
- -X github.com/maxvojtkov/pulumi-dokploy/provider/pkg/version.Version={{ .Version }}
goos:
- darwin
- linux
- windows
goarch:
- amd64
- arm64
archives:
- id: plugin
formats: [tar.gz]
name_template: "{{ .Binary }}-v{{ .Version }}-{{ .Os }}-{{ .Arch }}"
files:
- none*
checksum:
name_template: "{{ .ProjectName }}_{{ .Version }}_checksums.txt"
snapshot:
version_template: "{{ .Version }}-SNAPSHOT"
changelog:
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