Giter VIP home page Giter VIP logo

aws-buildx-remote-docker-instance-action's Introduction

AWS Buildx Remote Docker Instance Action

LICENSE Latest Release GitHub closed issues GitHub closed pull requests

Creates one arm64 and one amd64 ephemeral EC2 instances running a docker daemon for use by tools like docker/buildx to improve build times for multi-architecture image builds

Examples

jobs:
  build:
    runs-on: ubuntu-latest
    steps:
      - name: Checkout
        uses: actions/checkout@v3
      - name: Configure AWS Credentials
        uses: aws-actions/configure-aws-credentials@v2
        with:
          role-to-assume: "${{ secrets.AWS_ASSUME_ROLE }}"
          aws-region: "us-east-2"
      - name: Login to Docker Hub
        uses: docker/login-action@v2
        with:
          username: ${{ secrets.DOCKER_HUB_USERNAME }}
          password: ${{ secrets.DOCKER_HUB_ACCESS_TOKEN }}
      - name: Setup Buildx Remote Docker
        id: buildx
        uses: truemark/aws-buildx-remote-docker-instance-action@v4
        with:
          security-group-id: "sg-0baf5bcfe9f21efaa"
          subnet-id: "subnet-09a35a2abd797dbfa"
          instance-profile: "TruemarkEC2RoleforSSM"
          region: "us-east-2"
      - name: Build images
        run: |
          docker buildx build \
            --push \
            --platform linux/arm64,linux/amd64 \
            -f amazonlinux.Dockerfile \
            -t truemark/aws-cdk:beta-amazonlinux \
            -t truemark/aws-cdk:beta \
            .

Inputs

Name Type Required Description
subnet-id string Yes Subnet ID to launch the instances in
security-group-id string Yes Security group to apply to the EC2 instances
arm64-instance-type string Yes Instance type to use for the arm64 EC2 instance
amd64-instance-type string Yes Instance type to use for the amd64 EC2 instance
instance-profile string No Instance profile to use for the EC2 instances
volume-size number No Volume size in GB to use for the EC2 instances
associate-public-ip-address boolean No Associate a public IP address to the instances
tags string No Tags to apply to the EC2 instance. Format: JSON
region string Yes AWS region to use for the EC2 instances
key-name string No SSH key name to use for the EC2 instances

Outputs

Name Type Description
arm64-instance-id string Instance ID of the arm64 EC2 instance
amd64-instance-id string Instance ID of the amd64 EC2 instance

aws-buildx-remote-docker-instance-action's People

Contributors

dependabot[bot] avatar erikrj avatar

Stargazers

 avatar

Watchers

 avatar  avatar  avatar  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.