GitHub Action for logging in to the Buddy Docker registry using the BDY CLI.
- Authenticate with Buddy's Docker registry
- Works with
buddy/loginenvironment variables or direct inputs - Supports on-premises Buddy installations via custom API endpoint
steps:
- uses: buddy/login@v1
with:
token: ${{ secrets.BUDDY_TOKEN }}
region: US
- uses: buddy/docker-login@v1steps:
- uses: buddy/docker-login@v1
with:
token: ${{ secrets.BUDDY_TOKEN }}
region: ussteps:
- uses: buddy/docker-login@v1
with:
token: ${{ secrets.BUDDY_TOKEN }}
api_url: https://buddy.example.com/apiBy default, this action automatically installs the latest BDY CLI from the production channel. If you need a specific version or channel, use buddy/setup before this action.
| Input | Description | Required | Default |
|---|---|---|---|
token |
Buddy personal access token | No | BUDDY_TOKEN env var |
region |
Buddy region (us, eu, as) |
No | BUDDY_REGION env var |
api_url |
Buddy API endpoint for on-premises installations | No | BUDDY_API_ENDPOINT env var |
When using buddy/login, the following environment variables are automatically set and used as defaults:
BUDDY_TOKEN- Buddy personal access tokenBUDDY_REGION- Buddy regionBUDDY_API_ENDPOINT- Buddy API endpoint (on-premises only)
name: Build and Push
on: [push]
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: buddy/login@v1
with:
token: ${{ secrets.BUDDY_TOKEN }}
region: US
- uses: buddy/docker-login@v1
- run: docker build -t container.registry.sh/my-workspace/my-app:latest .
- run: docker push container.registry.sh/my-workspace/my-app:latest