Git Product home page Git Product logo

gcr's Introduction

GCR plugin

An action to build docker image and push to Google Cloud Registry.

Usage

jobs:
  job_id:
    steps:
      - uses: actions/checkout@v3
      - uses: UPN-TW/[email protected]
        with:
          gcr_auth_key: ${{ secrets.GCR_AUTH_KEY }}
          registry: gcr.io
          project_id: project_id
          image: backend
          tags: latest,v1
          dockerfile: ./docker/Dockerfile.prod
          context: ./docker

Inputs

  • gcr_auth_key: The service account key of Google Cloud project that composed of JSON can be encoded in base64 or in plain text.
  • registry: The registry where the image should be pushed.
  • project_id: Project ID of the Google Cloud project.
  • image: The image name.
  • tags: (Optional) A list of image tags separated by commas (e.g. v2.1,v2,latest).
    Default: latest.
  • dockerfile: (Optional) The image building Dockerfile, if the context is not the root of the repository, Dockerfile from the context folder will be used.
    Default: ./Dockerfile.
  • context: (Optional) The docker build context.
    Default: .
  • build-args: (Optional) Pass a list of environment variables as build-args for docker-build, separated by commas. ie: HOST=db.default.svc.cluster.local:5432,USERNAME=db_user.

gcr's People

Contributors

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