Sign inSign up

wuakitv/alfred-ecr

By wuakitv

•Updated over 5 years ago

Alfred ECR plugin. Builds and pushes images to AWS ECR

Image
0

10K+

wuakitv/alfred-ecr repository overview

⁠Alfred plugin: ecr

This plugin can be used to build and publish Docker images do AWS ECR⁠.

⁠Parameters

  • repo

Name of the repository to be built.

This parameter is required.

  • tags

Tags to add to the generated image.

Default value: latest

  • context

The context path to use.

Default value: .

  • aws_access_key_id

AWS access key ID to be used.

  • aws_secret_access_key

AWS secret access key to be used.

  • aws_region

AWS region to be used.

Default value: eu-west-1

  • ecr_uri

ECR URI where the images are going to be pushed.

This parameter is required.

  • build_args

Pass build args to the docker build command. Use the following syntax:

ARG1=value2,ARG2=value2,...

The arguments are going to be automatically sent to the docker build command so they can be used with the ARG parameter in the Dockerfile.

If the value are secrets or strings with spaces or other special characters, it's probably better to encode the value with base64 and decode it in the Dockerfile.

⁠Example usage

  - name: Build and push to AWS ECR
    image: wuakitv/alfred-ecr
    when:
      branch:
        - master
    settings:
      repo: wuakitv/gizmo
      tags:
        - latest
        - ${GIT_TAG}
        - ${BUILD_NUMBER}
      aws_access_key_id: 'AKIAXXXXXXXXXXXXX'
      aws_secret_access_key:
        from_vault: 'ecr/secret_access_key'
      ecr_uri: 585257864808.dkr.ecr.eu-west-1.amazonaws.com

⁠Update ChangeLog

After PR is done and merged, when you come back to MASTER branch, you need to launch the following in the root of the repository.

 docker run -it --rm -v "$(pwd)":/usr/local/src/your-app ferrarimarco/github-changelog-generator -u wuakitv -p docker-alfred-ecr -t ${GITHUB_TOKEN} --future-release 0.0.0
 git add CHANGELOG
 git commit -m "Update changelog"
 git tag x.x.xx
 git push origin master
 git push --tags

Tag summary

Content type

Image

Digest

Size

122.4 MB

Last updated

over 5 years ago

docker pull wuakitv/alfred-ecr