Toa Operations
Context
Container Registry
Build Options
# context.toa.yaml
registry:
build:
arguments: [GITHUB_TOKEN]
run: npm config set //npm.pkg.github.com/:_authToken ${GITHUB_TOKEN}
arguments
is a list of environemt varialbes to be passed to docker build
.
run
is a command(s) to be executed during build. Multiline is supported.
# context.toa.yaml
registry:
build:
run: |
echo test > .test
rm .test
Registry Credentials
When using private container registry,
a secret containing required credentials can be specified using registry.credentials
option.
# context.toa.yaml
registry:
credentials: docker-credentials-secret-name