mirror of
https://github.com/ivabus/pantry
synced 2024-11-29 19:55:06 +03:00
7076663a24
closes #3551
53 lines
1.1 KiB
YAML
53 lines
1.1 KiB
YAML
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: '*'
|
|
script:
|
|
- run: go mod download
|
|
working-directory: sdk
|
|
|
|
- run: go mod download
|
|
working-directory: pkg
|
|
|
|
- run: |
|
|
sed -i.bak -e 's/-ldflags "/-ldflags "-buildmode=pie /g' Makefile
|
|
rm Makefile.bak
|
|
if: linux
|
|
|
|
- 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: |
|
|
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"
|