GithubHelp home page GithubHelp logo

jondavidjohn / aws-ecr-action Goto Github PK

View Code? Open in Web Editor NEW

This project forked from kciter/aws-ecr-action

0.0 1.0 0.0 38 KB

This Action allows you to create Docker images and push into a ECR repository.

License: MIT License

Dockerfile 8.23% Shell 91.77%

aws-ecr-action's Introduction

AWS ECR Action

This Action allows you to create Docker images and push into a ECR repository.

Parameters

Parameter Type Default Description
access_key_id string Your AWS access key id
secret_access_key string Your AWS secret access key
account_id string Your AWS Account ID
repo string Name of your ECR repository
region string Your AWS region
create_repo boolean false Set this to true to create the repository if it does not already exist
set_repo_policy boolean false Set this to true to set a IAM policy on the repository
repo_policy_file string repo-policy.json Set this to repository policy statement json file. only used if the set_repo_policy is set to true
tags string latest Comma-separated string of ECR image tags (ex latest,1.0.0,)
dockerfile string Dockerfile Name of Dockerfile to use
extra_build_args string "" Extra flags to pass to docker build (see docs.docker.com/engine/reference/commandline/build)
path string . Path to Dockerfile, defaults to the working directory
prebuild_script string Relative path from top-level to script to run before Docker build

Usage

jobs:
  build-and-push:
    runs-on: ubuntu-latest
    steps:
    - uses: actions/checkout@v2
    - uses: docker://ghcr.io/kciter/aws-ecr-action:latest
      with:
        access_key_id: ${{ secrets.AWS_ACCESS_KEY_ID }}
        secret_access_key: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
        account_id: ${{ secrets.AWS_ACCOUNT_ID }}
        repo: docker/repo
        region: ap-northeast-2
        tags: latest,${{ github.sha }}
        create_repo: true
        set_repo_policy: true
        repo_policy_file: repo-policy.json

If you don't want to use the latest docker image, you can point to any reference in the repo directly.

  - uses: kciter/aws-ecr-action@master
  # or
  - uses: kciter/aws-ecr-action@v3
  # or
  - uses: kciter/aws-ecr-action@0589ad88c51a1b08fd910361ca847ee2cb708a30

License

The MIT License (MIT)

aws-ecr-action's People

Contributors

codfish avatar edmothershaw avatar kciter avatar rckreddy avatar smitp avatar trbngr 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.