Giter Site home page Giter Site logo

jacobpuff / action-build-push-image-ecr Goto Github PK

View Code? Open in Web Editor NEW

This project forked from catalystsquad/action-build-push-image-ecr

0.0 1.0 0.0 11 KB

GitHub action for building and pushing an image to an AWS ECR repository

License: Apache License 2.0

action-build-push-image-ecr's Introduction

GitHub Action:Build and Push Image to ECR

Builds and pushs an image to an AWS ECR repository

- uses: catalystsquad/action-build-push-image-ecr@undefined
  with:
    # Name of ECR repository to push images to. Defaults to the Git repository's name.
    # Default: ${{ github.repository }}
    ecr-repository: ""

    # AWS secret key ID. Required.
    aws-access-key-id: ""

    # AWS secret access key. Required.
    aws-secret-access-key: ""

    # AWS region. Required.
    aws-region: ""

    # AWS IAM role to assume.
    role-to-assume: ""

    # AWS IAM role external id
    role-external-id: ""

    # AWS IAM role assumption duration seconds
    # Default: 900
    role-duration-seconds: ""

    # Creates the ECR repository if it does not exist
    # Default: true
    create-missing-repositories: ""

    # AWS IAM role assumption session name
    # Default: action-build-push-image-ecr
    role-session-name: ""

    # List of AWS accounts to add access for
    # Default:
    extra-account-access: ""

    # git tags to push, comma separated string such as `latest,v1.0.0`
    # Default: latest,${{ github.event.release.tag_name }}
    tag-versions: ""

    # docker build secrets. key=value pairs separated by newlines. See [docker build
    # push action secrets configuration](https://github.com/docker/build-push-action/blob/master/docs/advanced/secrets.md) for details
    # Default:
    build-secrets: ""
Input Description Default Required
ecr-repository Name of ECR repository to push images to. Defaults to the Git repository's name. ${{ github.repository }} false
aws-access-key-id AWS secret key ID. Required. true
aws-secret-access-key AWS secret access key. Required. true
aws-region AWS region. Required. true
role-to-assume AWS IAM role to assume. false
role-external-id AWS IAM role external id false
role-duration-seconds AWS IAM role assumption duration seconds 900 false
create-missing-repositories Creates the ECR repository if it does not exist true false
role-session-name AWS IAM role assumption session name action-build-push-image-ecr false
extra-account-access List of AWS accounts to add access for false
tag-versions git tags to push, comma separated string such as latest,v1.0.0 latest,${{ github.event.release.tag_name }} false
build-secrets docker build secrets. key=value pairs separated by newlines. See docker build push action secrets configuration for details false
Output Description Default Required
random-number Random number

Example usage

name: Build and push image to ECR
on:
  release:
    types: [created]
jobs:
  build-push-image:
    runs-on: ubuntu-latest
    steps:
      - uses: catalystsquad/action-build-push-image-ecr@v1
        with:
          aws-access-key-id: ${{ secrets.AUTOMATION_AWS_ACCESS_KEY_ID }}
          aws-secret-access-key: ${{ secrets.AUTOMATION_AWS_SECRET_ACCESS_KEY }}
          role-to-assume: arn:aws:iam::000000000000:role/YourRoleHere
          aws-region: us-west-2
          extra-account-access: 000000000000,111111111111,222222222222

action-build-push-image-ecr's People

Contributors

benjyiw avatar semantic-release-bot avatar codelite7 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.