Skip to content

buddy/docker-login

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

20 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Buddy Docker Login

GitHub Action for logging in to the Buddy Docker registry using the BDY CLI.

Features

  • Authenticate with Buddy's Docker registry
  • Works with buddy/login environment variables or direct inputs
  • Supports on-premises Buddy installations via custom API endpoint

Usage

Basic (with buddy/login)

steps:
  - uses: buddy/login@v1
    with:
      token: ${{ secrets.BUDDY_TOKEN }}
      region: US
  - uses: buddy/docker-login@v1

Direct (without buddy/login)

steps:
  - uses: buddy/docker-login@v1
    with:
      token: ${{ secrets.BUDDY_TOKEN }}
      region: us

On-premises

steps:
  - uses: buddy/docker-login@v1
    with:
      token: ${{ secrets.BUDDY_TOKEN }}
      api_url: https://buddy.example.com/api

By 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.

Inputs

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

Environment Variables

When using buddy/login, the following environment variables are automatically set and used as defaults:

  • BUDDY_TOKEN - Buddy personal access token
  • BUDDY_REGION - Buddy region
  • BUDDY_API_ENDPOINT - Buddy API endpoint (on-premises only)

Example Workflow

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

License

MIT

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Packages

 
 
 

Contributors