Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 5 additions & 3 deletions orka/templates/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,9 @@ packer init .

1. You need to connect to the Orka VPN. You can find the instructions in the secrets repository. @TODO
2. Authenticate the cluster with `orka3 login` -> this will give a url to access to login to macstadium. This login lasts for 3600s.
3. Once logged into macstadium, you can `orka3 user get-token` to get a user token to do other things, like build images.
3. Once logged into macstadium, we need to get the service account token so we can build images without timing out.
`orka3 sa list` will display the service account tokens. `orka-deploy-dev` is the token we use for image builds.


## Authenticate to ghcr.io

Expand Down Expand Up @@ -72,15 +74,15 @@ We need the private key for node-www for the release images, as well as the appl
You can validate a specific template by running the following command (replace test with release if doing release images)

```shell
ORKA_AUTH_TOKEN=$(orka3 user get-token) packer validate -var-file=variables.auto.pkrvars.hcl macos-test.pkr.hcl
ORKA_AUTH_TOKEN=$(orka3 sa token orka-deploy-dev) packer validate -var-file=variables.auto.pkrvars.hcl macos-test.pkr.hcl
```

## Build the image

You can build a specific template by running the following command:

```shell
ORKA_AUTH_TOKEN=$(orka3 user get-token) packer build -var-file=variables.auto.pkrvars.hcl macos-test.pkr.hcl
ORKA_AUTH_TOKEN=$(orka3 sa token orka-deploy-dev) packer build -var-file=variables.auto.pkrvars.hcl macos-test.pkr.hcl
```

## Continuous Integration
Expand Down