Compare commits

..

3 Commits

Author SHA1 Message Date
Ramon Quitales
1f3e1c4d6f Add secrets and use bash 2025-01-25 01:17:53 -08:00
Ramon Quitales
4f7d51e581 temp: debug signing 2025-01-25 00:37:43 -08:00
Ramon Quitales
966c67b221 Update goreleaser configs from ci-mgmt source 2025-01-24 23:35:13 -08:00
4 changed files with 634 additions and 628 deletions

File diff suppressed because it is too large Load Diff

View File

@@ -2,48 +2,46 @@
project_name: pulumi-docker-build project_name: pulumi-docker-build
builds: builds:
- dir: provider - id: build-provider
env: dir: provider
- CGO_ENABLED=0 env:
- GO111MODULE=on - CGO_ENABLED=0
goos: - GO111MODULE=on
- darwin goos:
- linux - darwin
goarch: - linux
- amd64 goarch:
- arm64 - amd64
ignore: [] - arm64
main: ./cmd/pulumi-resource-docker-build/ ignore: &a1 []
ldflags: main: ./cmd/pulumi-resource-docker-build/
- -s ldflags: &a2
- -w - -s
- -X github.com/pulumi/pulumi-docker-build/provider/pkg/version.Version={{.Tag}} - -w
- -X github.com/pulumi/pulumi-docker-build/provider.Version={{.Tag}} - -X
binary: pulumi-resource-docker-build github.com/pulumi/pulumi-docker-build/provider/pkg/version.Version={{.Tag}}
id: build-provider - -X github.com/pulumi/pulumi-docker-build/provider.Version={{.Tag}}
- dir: provider binary: pulumi-resource-docker-build
env: - id: build-provider-sign-windows
- CGO_ENABLED=0 dir: provider
- GO111MODULE=on env:
goos: - CGO_ENABLED=0
- windows - GO111MODULE=on
goarch: goos:
- amd64 - windows
- arm64 goarch:
ignore: [] - amd64
main: ./cmd/pulumi-resource-docker-build/ - arm64
ldflags: ignore: *a1
- -s main: ./cmd/pulumi-resource-docker-build/
- -w ldflags: *a2
- -X github.com/pulumi/pulumi-docker-build/provider/pkg/version.Version={{.Tag}} binary: pulumi-resource-docker-build
- -X github.com/pulumi/pulumi-docker-build/provider.Version={{.Tag}} hooks:
binary: pulumi-resource-docker-build post:
id: build-provider-sign-windows - make sign-windows-exe-{{ .Arch }}
hooks:
post: make sign-windows-exe-{{ .Arch }}
archives: archives:
- name_template: "{{ .Binary }}-{{ .Tag }}-{{ .Os }}-{{ .Arch }}" - name_template: "{{ .Binary }}-{{ .Tag }}-{{ .Os }}-{{ .Arch }}"
id: archive id: archive
snapshot: snapshot:
name_template: "{{ .Tag }}-SNAPSHOT" name_template: "{{ .Tag }}-SNAPSHOT"
changelog: changelog:
@@ -51,9 +49,9 @@ changelog:
release: release:
disable: true disable: true
blobs: blobs:
- provider: s3 - provider: s3
region: us-west-2 region: us-west-2
bucket: get.pulumi.com bucket: get.pulumi.com
folder: releases/plugins/ folder: releases/plugins/
ids: ids:
- archive - archive

View File

@@ -2,48 +2,46 @@
project_name: pulumi-docker-build project_name: pulumi-docker-build
builds: builds:
- dir: provider - id: build-provider
env: dir: provider
- CGO_ENABLED=0 env:
- GO111MODULE=on - CGO_ENABLED=0
goos: - GO111MODULE=on
- darwin goos:
- linux - darwin
goarch: - linux
- amd64 goarch:
- arm64 - amd64
ignore: [] - arm64
main: ./cmd/pulumi-resource-docker-build/ ignore: &a1 []
ldflags: main: ./cmd/pulumi-resource-docker-build/
- -s ldflags: &a2
- -w - -s
- -X github.com/pulumi/pulumi-docker-build/provider/pkg/version.Version={{.Tag}} - -w
- -X github.com/pulumi/pulumi-docker-build/provider.Version={{.Tag}} - -X
binary: pulumi-resource-docker-build github.com/pulumi/pulumi-docker-build/provider/pkg/version.Version={{.Tag}}
id: build-provider - -X github.com/pulumi/pulumi-docker-build/provider.Version={{.Tag}}
- dir: provider binary: pulumi-resource-docker-build
env: - id: build-provider-sign-windows
- CGO_ENABLED=0 dir: provider
- GO111MODULE=on env:
goos: - CGO_ENABLED=0
- windows - GO111MODULE=on
goarch: goos:
- amd64 - windows
- arm64 goarch:
ignore: [] - amd64
main: ./cmd/pulumi-resource-docker-build/ - arm64
ldflags: ignore: *a1
- -s main: ./cmd/pulumi-resource-docker-build/
- -w ldflags: *a2
- -X github.com/pulumi/pulumi-docker-build/provider/pkg/version.Version={{.Tag}} binary: pulumi-resource-docker-build
- -X github.com/pulumi/pulumi-docker-build/provider.Version={{.Tag}} hooks:
binary: pulumi-resource-docker-build post:
id: build-provider-sign-windows - make sign-windows-exe-{{ .Arch }}
hooks:
post: make sign-windows-exe-{{ .Arch }}
archives: archives:
- name_template: "{{ .Binary }}-{{ .Tag }}-{{ .Os }}-{{ .Arch }}" - name_template: "{{ .Binary }}-{{ .Tag }}-{{ .Os }}-{{ .Arch }}"
id: archive id: archive
snapshot: snapshot:
name_template: "{{ .Tag }}-SNAPSHOT" name_template: "{{ .Tag }}-SNAPSHOT"
changelog: changelog:
@@ -51,9 +49,9 @@ changelog:
release: release:
disable: false disable: false
blobs: blobs:
- provider: s3 - provider: s3
region: us-west-2 region: us-west-2
bucket: get.pulumi.com bucket: get.pulumi.com
folder: releases/plugins/ folder: releases/plugins/
ids: ids:
- archive - archive

View File

@@ -272,7 +272,7 @@ bin/jsign-6.0.jar:
sign-windows-exe-amd64: GORELEASER_ARCH := amd64_v1 sign-windows-exe-amd64: GORELEASER_ARCH := amd64_v1
sign-windows-exe-arm64: GORELEASER_ARCH := arm64 sign-windows-exe-arm64: GORELEASER_ARCH := arm64
sign-windows-exe-%: SHELL:=/bin/bash
sign-windows-exe-%: bin/jsign-6.0.jar sign-windows-exe-%: bin/jsign-6.0.jar
@# Only sign windows binary if fully configured. @# Only sign windows binary if fully configured.
@# Test variables set by joining with | between and looking for || showing at least one variable is empty. @# Test variables set by joining with | between and looking for || showing at least one variable is empty.
@@ -284,7 +284,7 @@ sign-windows-exe-%: bin/jsign-6.0.jar
echo "To rebuild with signing delete the unsigned windows exe file and rebuild with the fixed configuration"; \ echo "To rebuild with signing delete the unsigned windows exe file and rebuild with the fixed configuration"; \
if [[ "${CI}" == "true" ]]; then exit 1; fi; \ if [[ "${CI}" == "true" ]]; then exit 1; fi; \
else \ else \
file=dist/pulumi-docker-build_windows_${GORELEASER_ARCH}/pulumi-resource-docker-build.exe; \ file=dist/build-provider-sign-windows_windows_${GORELEASER_ARCH}/pulumi-resource-docker-build.exe; \
mv $${file} $${file}.unsigned; \ mv $${file} $${file}.unsigned; \
az login --service-principal \ az login --service-principal \
--username "${AZURE_SIGNING_CLIENT_ID}" \ --username "${AZURE_SIGNING_CLIENT_ID}" \