Skip to content
This repository has been archived by the owner on Sep 8, 2022. It is now read-only.

🍦 GitHub action used for easier AWS Elastic Container Registry configuration and authentication

License

Notifications You must be signed in to change notification settings

boomeventsorg/aws-container-registry-action

Use this GitHub action with your project
Add this Action to an existing workflow or create a new one
View on Marketplace

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 

Repository files navigation

AWS Container registry configuration GitHub action

🍦 GitHub action used for easier AWS Elastic Container Registry configuration and authentication.

This GitHub action uses aws-actions/configure-aws-credentials@v1 and aws-actions/amazon-ecr-login@v1 actions and combines them into one for easy use.

Example usage

name: 'My awesome deployment action'

on: push:

jobs:
  build:
    runs-on: ubuntu-20.04
    steps:
      - uses: actions/checkout@v2

      # Configuration stage
      - name: Configure AWS Elastic Container Registry
        id: aws-registry
        uses: goforboom/aws-container-registry-action@v1
        with:
          awsAccessKeyId: xyz
          awsSecretAccessKey: xyz
          awsRegion: eu-west-1

      # Build stage
      - name: Build application
        run: docker-compose build

      # Release stage
      - name: Build application image
        env:
          REGISTRY: ${{ steps.aws-registry.outputs.awsRegistry }}
        run: |
          docker tag app:latest $REGISTRY/awesome-application:1
          docker push $REGISTRY/awesome-application:1

About

🍦 GitHub action used for easier AWS Elastic Container Registry configuration and authentication

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published