GithubHelp home page GithubHelp logo

isabella232 / docker-login-buildkite-plugin Goto Github PK

View Code? Open in Web Editor NEW

This project forked from buildkite-plugins/docker-login-buildkite-plugin

0.0 0.0 0.0 106 KB

๐Ÿณ Login to Docker registries

License: MIT License

Shell 100.00%

docker-login-buildkite-plugin's Introduction

Docker Login Buildkite Plugin Build status

A Buildkite plugin to login to docker registries.

Securing your password

To avoid leaking your docker password to buildkite.com or anyone with access to build logs, you need to avoid including it in pipeline.yml. This means it needs to be set specifically with an environment variable in an Agent hook, or made available from a previous plugin defined on the same step.

Securing your password between Buildkite Jobs

The Elastic CI Stack for AWS automatically creates a per-job DOCKER_CONFIG directory which is cleaned up after the job. If you are using this plug-in with another agent orchestration tool, consider whether you need a per-job DOCKER_CONFIG too.

Example

# environment or pre-command hook
export MY_DOCKER_LOGIN_PASSWORD=mysecretpassword
steps:
  - command: ./run_build.sh
    plugins:
      - docker-login#v2.1.0:
          username: myuser
          password-env: MY_DOCKER_LOGIN_PASSWORD

Options

username

The username to send to the docker registry.

server (optional)

The server to log in to, if blank or ommitted logs into Docker Hub.

password-env

The environment variable that the password is stored in.

Defaults to DOCKER_LOGIN_PASSWORD.

retries (optional)

Retries login after a delay N times. Defaults to 0.

Windows Issues

This plugin requires git-bash, not the Windows built-in bash.exe, so you'll need to set your system PATH to have git-bash bin directory first, normallly C:\Program Files\git\bin.

License

MIT (see LICENSE)

docker-login-buildkite-plugin's People

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.