mirror of
https://github.com/ivabus/pantry
synced 2024-11-26 18:25:08 +03:00
+pulumi (#1857)
* +pulumi * add ca-certs * move env vars around --------- Co-authored-by: Jacob Heider <jacob@tea.xyz>
This commit is contained in:
parent
1fc8973cd4
commit
b9750c1f24
1 changed files with 53 additions and 0 deletions
53
projects/pulumi.io/package.yml
Normal file
53
projects/pulumi.io/package.yml
Normal file
|
@ -0,0 +1,53 @@
|
||||||
|
distributable:
|
||||||
|
url: https://github.com/pulumi/pulumi/archive/refs/tags/v{{ version }}.tar.gz
|
||||||
|
strip-components: 1
|
||||||
|
|
||||||
|
versions:
|
||||||
|
github: pulumi/pulumi
|
||||||
|
strip: /v/
|
||||||
|
|
||||||
|
provides:
|
||||||
|
- bin/pulumi
|
||||||
|
|
||||||
|
dependencies:
|
||||||
|
curl.se/ca-certs: '*'
|
||||||
|
|
||||||
|
build:
|
||||||
|
dependencies:
|
||||||
|
go.dev: '*'
|
||||||
|
tea.xyz/gx/make: '*'
|
||||||
|
script: |
|
||||||
|
pushd sdk
|
||||||
|
go mod download
|
||||||
|
popd
|
||||||
|
|
||||||
|
pushd pkg
|
||||||
|
go mod download
|
||||||
|
popd
|
||||||
|
|
||||||
|
make build
|
||||||
|
make install
|
||||||
|
|
||||||
|
mkdir -p {{prefix}}/bin
|
||||||
|
mv build/bin/pulumi* {{prefix}}/bin/
|
||||||
|
|
||||||
|
# Install shell completions
|
||||||
|
# TODO: Doesn't work for zsh. Should it be left up to user?
|
||||||
|
# {{prefix}}/bin/pulumi gen-completion $SHELL
|
||||||
|
env:
|
||||||
|
GOPATH: "$PWD/build"
|
||||||
|
|
||||||
|
test:
|
||||||
|
script: |
|
||||||
|
export PULUMI_ACCESS_TOKEN="local://"
|
||||||
|
export PULUMI_TEMPLATE_PATH="$PWD/templates"
|
||||||
|
pulumi new aws-typescript --generate-only --force -y
|
||||||
|
if [ -e "$PWD/Pulumi.yaml" ]; then
|
||||||
|
echo "Project was created"
|
||||||
|
else
|
||||||
|
echo "Project was not created"
|
||||||
|
exit 1
|
||||||
|
fi
|
||||||
|
env:
|
||||||
|
PULUMI_ACCESS_TOKEN: local://
|
||||||
|
PULUMI_TEMPLATE_PATH: "$PWD/templates"
|
Loading…
Reference in a new issue