Giter Club home page Giter Club logo

mra's Introduction

Multi Registry Authenticator (MRA)

About

Overview

This Action enables bulk login to multiple container registries at once

Why did write this action?

When using the official login action provided by Docker, there is no possibility to login into multiple registries at once.
Therefore, I wanted to enable this feature and eliminate the need to run the login action N times within a workflow.

How does this action Work?

The action works very simple. It loops over a semicolon separated string of registries and logs into them.

What are the limitations of this Action?

This action in its 1st version does not support logout from registries as post job stage. This feature will be supported soon in the 2nd version.

Usage

Using this Action is just as simple as using the official Docker/login-action.

Caution

Please store registry access credentials in a secure place such as GitHub Secrets

Input

  • registries:
    • Required: Yes
    • Description: A Multi-line string containing all registries to log into. Each in the format: REGISTRY_HOST;USERNAME;PASSWORD

Example

Below is an example on how to use this action in your workflow:

...
  steps:
      - name: Login to GitHub Container Registry
        uses: Abdullah-Shahen/MRA@v1 # Please use full commit hash of the version tag
        with:
          registries: |
            ghcr.io;${{ secrets.GHCR_USERNAME }};${{ secrets.GHCR_PASSWORD }}
            registry.gitlab.com;${{ secrets.GITLAB_USERNAME }};${{ secrets.GITLAB_PASSWORD }}
...

mra's People

Contributors

abdullah-shahen avatar

Watchers

 avatar

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.