Giter Club home page Giter Club logo

gar-push-docker-image's Introduction

GAR Docker Repository Image Push Action

Google Artifact Registry (GAR) is a service available on the Google Cloud Platform (GCP). GAR Docker repositories are one way to privately store Docker images.

This action has not been endorsed by Google, its Parent Alphabet, or any related entity.

This action encapsulates the steps needed to push a Docker image to a GAR repository.

Features

  • Minimal Configuration

Usage

...
    steps:
      - uses: actions/checkout@v3

      - name: Build Application
        run: "make build"
        
      - name: Build Docker Image
        run: |
          export TAG=`echo $GITHUB_REF | awk -F/ '{print $NF}'`
          docker build -t my-docker-image:"$TAG"
          

      - name: Store Image
        uses: firstmate-systems/gar-push-docker-image@v1
        with:
          DOCKER_IMAGE_NAME: "my-docker-image:"${{ env.TAG }}
          GCP_CREDENTIALS: ${{ secrets.GCP_CREDENTIALS }}
          GCP_PROJECT_ID: my-project-id
          GCP_REPO_NAME: 'my-docker-repo'
          GCP_REGION: us-west3

Inputs

Input Type Required Default Description
DOCKER_IMAGE_NAME string Yes Name of Image to Push to GAR
GCP_CREDENTIALS string Yes Service Account Credentials in JSON format that have been Base64 Encoded
GCP_PROJECT_ID string Yes ID of Project that the GAR Repo is associated with.
GCP_REPO_NAME string Yes Name of Artifact Registry in GCP
GCP_REGION string No us-west3 Name of GCP Region that Artifact Registry is Located

Outputs

None right now. If you have a use case, you're welcome to contribute.

License

MIT License

gar-push-docker-image's People

Contributors

beehivewarrior avatar

Watchers

James Cloos 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.