Giter Site home page Giter Site logo

moteef / aws-ecr-orb Goto Github PK

View Code? Open in Web Editor NEW

This project forked from circleci-public/aws-ecr-orb

0.0 1.0 0.0 201 KB

CircleCI orb for interacting with Amazon's Elastic Container Registry (ECR)

Home Page: https://circleci.com/orbs/registry/orb/circleci/aws-ecr

License: MIT License

aws-ecr-orb's Introduction

AWS ECR Orb CircleCI status CircleCI Orb Version MIT licensed CircleCI Community

CircleCI orb for interacting with Amazon's Elastic Container Registry (ECR).

Usage

See the orb registry listing for usage guidelines.

Examples

See below for both simple and complete examples of this orb's build_and_push_image job. For details, see the listing in the Orb Registry.

Simple

version: 2.1

orbs:
  aws-ecr: circleci/[email protected]

workflows:
  simple_build_and_push:
    jobs:
      # with default parameter values, the following would be sufficient to build and push an image to ECR
      - aws-ecr/build-and-push-image:
          repo: myRepositoryName

Complete

version: 2.1

orbs:
  aws-ecr: circleci/[email protected]

workflows:
  complete_build_and_push:
    jobs:
      # build and push image to ECR
      - aws-ecr/build-and-push-image:

          # required if any necessary secrets are stored via Contexts
          context: myContext

          # AWS profile name, defaults to "default"
          profile-name: myProfileName

          # name of env var storing your AWS Access Key ID, defaults to AWS_ACCESS_KEY_ID
          aws-access-key-id: ACCESS_KEY_ID_ENV_VAR_NAME

          # name of env var storing your AWS Secret Access Key, defaults to AWS_SECRET_ACCESS_KEY
          aws-secret-access-key: SECRET_ACCESS_KEY_ENV_VAR_NAME

          # name of env var storing your AWS region, defaults to AWS_REGION
          region: AWS_REGION_ENV_VAR_NAME

          # name of env var storing your ECR account URL, defaults to AWS_ECR_ACCOUNT_URL
          account-url: AWS_ECR_ACCOUNT_URL_ENV_VAR_NAME

          # name of your ECR repository
          repo: myECRRepository

          # set this to use CircleCI's remote Docker environment for Docker and docker-compose commands,
          # defaults to "false"
          setup-remote-docker: true

          # when setup-remote-docker is true, customize docker engine version (default is `19.03.13`)
          remote-docker-version: 19.03.13

          # set this to enable Docker layer caching if using remote Docker engine.
          # defaults to "false"
          remote-docker-layer-caching: true

          # set this to enable dockerhub authenticated pulls, defaults to false.
          docker-login: true

          # name of env var storing your dockerhub username, defaults to DOCKERHUB_USERNAME.
          dockerhub-username: DOCKERHUB_USERNAME

          # name of env var storing your dockerhub password, defaults to DOCKERHUB_PASSWORD.
          dockerhub-password: DOCKERHUB_PASSWORD

          # set this to true to create the repository if it does not already exist, defaults to "false"
          create-repo: true

          # set this to true to scan the created repository for CVEs on push, defaults to "true"
          repo-scan-on-push: true

          # ECR image tags (comma-separated string), defaults to "latest"
          tag: latest,myECRRepoTag

          # name of Dockerfile to use, defaults to "Dockerfile"
          dockerfile: myDockerfile

          # path to Dockerfile, defaults to . (working directory)
          path: pathToMyDockerfile

          # The amount of time to allow the docker build command to run before timing out (default is `10m`)
          no-output-timeout: 15m

          # Set to true if you don't want to build the image if it already exists in the ECR repo, for example when
          # you are tagging with the git commit hash. Specially useful for faster code reverts.
          skip-when-tags-exist: false

Contributing

We welcome issues to and pull requests against this repository! For further questions/comments about this or other orbs, visit CircleCI's Orbs discussion forum.

aws-ecr-orb's People

Contributors

a7i avatar aaron-trout avatar backendtea avatar bmbferreira avatar carsonip avatar cassianoblonski avatar davidmusgrove avatar djmilosev avatar duffn avatar eddiewebb avatar ericchanky avatar hdtafur avatar ivanarjona avatar iynere avatar jemc avatar jesusvalera avatar korean139 avatar kyletryon avatar langfors avatar lokst avatar manabusakai avatar mislavcimpersak avatar pierresteiner avatar ricoli avatar tarikdem avatar ttrahan avatar tybot204 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.