https://github.com/duologic/staticdeploy-libsonnet
Jsonnet library for StaticDeploy
https://github.com/duologic/staticdeploy-libsonnet
jsonnet jsonnet-lib
Last synced: about 1 year ago
JSON representation
Jsonnet library for StaticDeploy
- Host: GitHub
- URL: https://github.com/duologic/staticdeploy-libsonnet
- Owner: Duologic
- Created: 2021-05-22T14:18:53.000Z (about 5 years ago)
- Default Branch: master
- Last Pushed: 2021-05-28T12:14:00.000Z (about 5 years ago)
- Last Synced: 2025-01-27T10:43:29.331Z (over 1 year ago)
- Topics: jsonnet, jsonnet-lib
- Language: Jsonnet
- Homepage:
- Size: 3.91 KB
- Stars: 0
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# StaticDeploy jsonnet library
Jsonnet library for https://staticdeploy.io/
## Usage
Install it with jsonnet-bundler:
```console
jb install https://github.com/Duologic/staticdeploy-libsonnet
```
Import into your jsonnet:
```jsonnet
local staticdeploy = import 'github.com/Duologic/staticdeploy-libsonnet/main.libsonnet';
{
staticdeploy:
staticdeploy.new('localhost', name='my-staticdeploy')
+ staticdeploy.config.withStoragesSecret(
postgres_url='postgresql://localhost:5432',
s3_bucket='my-staticdeploy',
s3_endpoint='https://storage.googleapis.com',
s3_access_key_id='someAccessKey',
s3_secret_access_key='someSecretAccessKey',
),
}
```