Skip to content

Commit

Permalink
add local tarballs section
Browse files Browse the repository at this point in the history
  • Loading branch information
crhntr committed Jul 5, 2023
1 parent 8fe7145 commit 6018042
Showing 1 changed file with 11 additions and 7 deletions.
18 changes: 11 additions & 7 deletions TILE_AUTHOR_GUIDE.md
Original file line number Diff line number Diff line change
Expand Up @@ -268,32 +268,36 @@ kiln fetch --variable="github_token=${GITHUB_TOKEN}"

Kiln can fetch and upload releases to/from Build Artifactory.

_TODO_
_TODO: write this section._

#### <a id='release-source-s3'></a> AWS S3

Kiln can fetch and upload releases to/from AWS S3.

_TODO_
_TODO: write this section._

#### <a id='release-source-directory'></a> Local files
#### <a id='release-source-directory'></a> Local tarballs

_TODO_
`kiln bake` adds the BOSH release tarballs in the releases directory to the tile reguardless of if they match the Kilnfile.lock
(There may be a regression in this behavior but that change may be fixed/reverted.)
Building a tile with arbitrary releases in the tarball is not secure; this behavior should only be used for development not for building production tiles.

_TODO: test out this behavior (a slack comment mentioned it is not working)._

#### Default credentials file

You can add a default credentials file to `~/.kiln/credentials.yml` so you don't need to pass variables flags everywhere.
Don't do this with production creds but if you have credentials you can safely write to your disk, consider using this functionality.
The file can look like this
```yaml
# GitHub release sources credentials
# GitHub BOSH release tarball release sources credentials
github_token: some-token

# S3 release source credentials
# S3 release BOSH release tarball source credentials
aws_secret_access_key: some-key
aws_access_key_id: some-id

# Artifactory release source credentials
# Artifactory BOSH release tarball release source credentials
artifactory_username: some-username
artifactory_password: some-password
```
Expand Down

0 comments on commit 6018042

Please sign in to comment.