Skip to content

Releases: isometry/setup-docker-credential-env

v1.0.0

02 May 17:56
v1.0.0
e93ab79

Choose a tag to compare

docker-credential-env Setup Action

A GitHub Action that installs docker-credential-env and configures Docker to use environment variables for registry authentication.

Features

  • Configures Docker (or any OCI client that leverages its credential management system) to authenticate with OCI registries using environment variables
  • Works with GitHub Container Registry, Docker Hub, Quay.io, AWS ECR, and other OCI registries (default: ghcr.io)
  • Uses GitHub Actions runner tool cache for efficient caching
  • Cross-platform support (Linux, macOS, Windows)

Example Usage

- name: Setup docker-credential-env
  uses: isometry/setup-docker-credential-env@v1
  with:
    registries: 'ghcr.io docker.io quay.io'

- name: Build and push
  run: docker build -t ghcr.io/myorg/myapp:latest . && docker push ghcr.io/myorg/myapp:latest
  env:
    GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}  # for ghcr.io