This is an Alpine image with the Tugboat
CLI tool installed. The entrypoint of the
image is tugboat
so you can pass arguments to it using docker run
. This is
image is mostly useful for CI environments such as GitHub Actions.
This example reads your token in using an environment variable to run tugboat ls previews
.
docker run -it --rm \
--env TUGBOAT_API_TOKEN=$TUGBOAT_API_TOKEN tugboatqa/cli \
ls previews
This example runs tugboat ls previews
by bind mounting your ~/.tugboat.yml
file
with your auth token into a Docker container.
docker run -it --rm \
--mount type=bind,source=$HOME/.tugboat.yml,target=/root/.tugboat.yml,readonly \
tugboatqa/cli \
ls previews
jobs:
tugboat:
name: Find Previews
runs-on: ubuntu-latest
container:
image: tugboatqa/cli
env:
TUGBOAT_API_TOKEN: ${{ secrets.TUGBOAT_API_TOKEN }}
steps:
- run: tugboat ls previews repo=${{ secrets.TUGBOAT_REPO }}