Skip to content

Commit

Permalink
Update GitHub Actions workflows. (#2857)
Browse files Browse the repository at this point in the history
This PR was automatically generated by the
update-workflows-ecosystem-providers workflow in the pulumi/ci-mgmt
repo, from commit ceeb0e7bc29c241d9d6a02b75866e423dc0a473b.
  • Loading branch information
pulumi-bot authored Oct 6, 2023
1 parent 02d32d4 commit 0b33b02
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 113 deletions.
104 changes: 0 additions & 104 deletions .github/workflows/update-bridge.yml

This file was deleted.

26 changes: 17 additions & 9 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ JAVA_GEN_VERSION := v0.9.5
TESTPARALLELISM := 10
WORKING_DIR := $(shell pwd)
PULUMI_PROVIDER_BUILD_PARALLELISM ?= -p 2
PULUMI_CONVERT := 0

development: install_plugins provider build_sdks install_sdks

Expand Down Expand Up @@ -94,14 +95,13 @@ install_dotnet_sdk:
install_nodejs_sdk:
yarn link --cwd $(WORKING_DIR)/sdk/nodejs/bin

install_plugins:
[ -x "$(shell command -v pulumi 2>/dev/null)" ] || curl -fsSL https://get.pulumi.com | sh
pulumi plugin install resource archive 0.0.1
pulumi plugin install resource tls 4.10.0
pulumi plugin install resource github 4.10.0
pulumi plugin install resource kubernetes 3.17.0
pulumi plugin install resource random 4.8.2
pulumi plugin install resource github 5.14.0
install_plugins: .pulumi/bin/pulumi
.pulumi/bin/pulumi plugin install resource archive 0.0.1
.pulumi/bin/pulumi plugin install resource tls 4.10.0
.pulumi/bin/pulumi plugin install resource github 4.10.0
.pulumi/bin/pulumi plugin install resource kubernetes 3.17.0
.pulumi/bin/pulumi plugin install resource random 4.8.2
.pulumi/bin/pulumi plugin install resource github 5.14.0

lint_provider: provider
cd provider && golangci-lint run -c ../.golangci.yml
Expand All @@ -114,7 +114,7 @@ test:

tfgen: install_plugins upstream
(cd provider && go build $(PULUMI_PROVIDER_BUILD_PARALLELISM) -o $(WORKING_DIR)/bin/$(TFGEN) -ldflags "-X $(PROJECT)/$(VERSION_PATH)=$(VERSION)" $(PROJECT)/$(PROVIDER_PATH)/cmd/$(TFGEN))
$(WORKING_DIR)/bin/$(TFGEN) schema --out provider/cmd/$(PROVIDER)
PATH=${PWD}/.pulumi/bin:$$PATH PULUMI_CONVERT=$(PULUMI_CONVERT) $(WORKING_DIR)/bin/$(TFGEN) schema --out provider/cmd/$(PROVIDER)
(cd provider && VERSION=$(VERSION) go generate cmd/$(PROVIDER)/main.go)

upstream:
Expand Down Expand Up @@ -151,5 +151,13 @@ ci-mgmt: .ci-mgmt.yaml
--template bridged-provider \
--config $<

.pulumi/bin/pulumi: HOME := $(WORKING_DIR)
.pulumi/bin/pulumi: .pulumi/version
curl -fsSL https://get.pulumi.com | sh -s -- --version $(cat .pulumi/version)

# Compute the version of Pulumi to use by inspecting the Go dependencies of the provider.
.pulumi/version:
@mkdir -p .pulumi
@cd provider && go list -f "{{slice .Version 1}}" -m github.com/pulumi/pulumi/pkg/v3 | tee ../$@

.PHONY: development build build_sdks install_go_sdk install_java_sdk install_python_sdk install_sdks only_build build_dotnet build_go build_java build_nodejs build_python clean cleanup help install_dotnet_sdk install_nodejs_sdk install_plugins lint_provider provider test tfgen upstream upstream.finalize upstream.rebase ci-mgmt

0 comments on commit 0b33b02

Please sign in to comment.