# 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--.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