Compare commits
3 Commits
v0.0.1-tes
...
v0.0.1-alp
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
1f3e1c4d6f | ||
|
|
4f7d51e581 | ||
|
|
966c67b221 |
1074
.github/workflows/prerelease.yml
vendored
1074
.github/workflows/prerelease.yml
vendored
File diff suppressed because it is too large
Load Diff
@@ -2,26 +2,43 @@
|
|||||||
|
|
||||||
project_name: pulumi-docker-build
|
project_name: pulumi-docker-build
|
||||||
builds:
|
builds:
|
||||||
- dir: provider
|
- id: build-provider
|
||||||
|
dir: provider
|
||||||
env:
|
env:
|
||||||
- CGO_ENABLED=0
|
- CGO_ENABLED=0
|
||||||
- GO111MODULE=on
|
- GO111MODULE=on
|
||||||
goos:
|
goos:
|
||||||
- darwin
|
- darwin
|
||||||
- windows
|
|
||||||
- linux
|
- linux
|
||||||
goarch:
|
goarch:
|
||||||
- amd64
|
- amd64
|
||||||
- arm64
|
- arm64
|
||||||
ignore: []
|
ignore: &a1 []
|
||||||
main: ./cmd/pulumi-resource-docker-build/
|
main: ./cmd/pulumi-resource-docker-build/
|
||||||
ldflags:
|
ldflags: &a2
|
||||||
- -s
|
- -s
|
||||||
- -w
|
- -w
|
||||||
- -X
|
- -X
|
||||||
github.com/pulumi/pulumi-docker-build/provider/pkg/version.Version={{.Tag}}
|
github.com/pulumi/pulumi-docker-build/provider/pkg/version.Version={{.Tag}}
|
||||||
- -X github.com/pulumi/pulumi-docker-build/provider.Version={{.Tag}}
|
- -X github.com/pulumi/pulumi-docker-build/provider.Version={{.Tag}}
|
||||||
binary: pulumi-resource-docker-build
|
binary: pulumi-resource-docker-build
|
||||||
|
- id: build-provider-sign-windows
|
||||||
|
dir: provider
|
||||||
|
env:
|
||||||
|
- CGO_ENABLED=0
|
||||||
|
- GO111MODULE=on
|
||||||
|
goos:
|
||||||
|
- windows
|
||||||
|
goarch:
|
||||||
|
- amd64
|
||||||
|
- arm64
|
||||||
|
ignore: *a1
|
||||||
|
main: ./cmd/pulumi-resource-docker-build/
|
||||||
|
ldflags: *a2
|
||||||
|
binary: pulumi-resource-docker-build
|
||||||
|
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
|
||||||
|
|||||||
@@ -2,26 +2,43 @@
|
|||||||
|
|
||||||
project_name: pulumi-docker-build
|
project_name: pulumi-docker-build
|
||||||
builds:
|
builds:
|
||||||
- dir: provider
|
- id: build-provider
|
||||||
|
dir: provider
|
||||||
env:
|
env:
|
||||||
- CGO_ENABLED=0
|
- CGO_ENABLED=0
|
||||||
- GO111MODULE=on
|
- GO111MODULE=on
|
||||||
goos:
|
goos:
|
||||||
- darwin
|
- darwin
|
||||||
- windows
|
|
||||||
- linux
|
- linux
|
||||||
goarch:
|
goarch:
|
||||||
- amd64
|
- amd64
|
||||||
- arm64
|
- arm64
|
||||||
ignore: []
|
ignore: &a1 []
|
||||||
main: ./cmd/pulumi-resource-docker-build/
|
main: ./cmd/pulumi-resource-docker-build/
|
||||||
ldflags:
|
ldflags: &a2
|
||||||
- -s
|
- -s
|
||||||
- -w
|
- -w
|
||||||
- -X
|
- -X
|
||||||
github.com/pulumi/pulumi-docker-build/provider/pkg/version.Version={{.Tag}}
|
github.com/pulumi/pulumi-docker-build/provider/pkg/version.Version={{.Tag}}
|
||||||
- -X github.com/pulumi/pulumi-docker-build/provider.Version={{.Tag}}
|
- -X github.com/pulumi/pulumi-docker-build/provider.Version={{.Tag}}
|
||||||
binary: pulumi-resource-docker-build
|
binary: pulumi-resource-docker-build
|
||||||
|
- id: build-provider-sign-windows
|
||||||
|
dir: provider
|
||||||
|
env:
|
||||||
|
- CGO_ENABLED=0
|
||||||
|
- GO111MODULE=on
|
||||||
|
goos:
|
||||||
|
- windows
|
||||||
|
goarch:
|
||||||
|
- amd64
|
||||||
|
- arm64
|
||||||
|
ignore: *a1
|
||||||
|
main: ./cmd/pulumi-resource-docker-build/
|
||||||
|
ldflags: *a2
|
||||||
|
binary: pulumi-resource-docker-build
|
||||||
|
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
|
||||||
|
|||||||
4
Makefile
4
Makefile
@@ -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}" \
|
||||||
|
|||||||
Reference in New Issue
Block a user