Git Product home page Git Product logo

aws-s3-docker-action's Introduction

AWS S3 Docker action

This actions using the AWS-CLI to sync a directory from your repository to a S3 bucket.

Inputs

Key Description Required Type
AWS_ACCESS_KEY_ID The AWS Access Key TRUE SECRET
AWS_SECRET_ACCESS_KEY The AWS secret access key TRUE SECRET
AWS_REGION The region of the bucket TRUE
AWS_BUCKET_NAME The bucket to sync TRUE SECRET
SOURCE Your local file path that you wish to upload to S3 TRUE
TARGET The destination of the source after sync in S3 TRUE
WITH_DELETE If you want to use the --delete flag
WITH_CLOUDFRONT_INVALIDATION If you want to use cloudfront invalidation
AWS_CLOUDFRONT_DISTRIBUTION_ID The cloudfront distributions id (use only if you need invalidation) SECRET
AWS_CLOUDFRONT_INVALIDATION_PATH Path to the cloudfront invalidation (use only if you need invalidation)

Example usage

Create the file workflow.yml in .github/workflows folder.

name: S3 Sync
on [push]

jobs:
  deploy:
    runs-on: ubuntu-latest
    steps:
      - uses: actions/checkout@master

      - name: Sync to S3
        uses: raulanatol/aws-s3-docker-action@master
        env:
          AWS_ACCESS_KEY_ID:
          AWS_SECRET_ACCESS_KEY:
          AWS_REGION: 
          AWS_BUCKET_NAME: 
          SOURCE: 
          TARGET: 
          WITH_DELETE: 
          WITH_CLOUD_FRONT_INVALIDATION: 
          AWS_CLOUDFRONT_DISTRIBUTION_ID: 
          AWS_CLOUDFRONT_INVALIDATION_PATH:

aws-s3-docker-action's People

Contributors

raulanatol avatar

Watchers

 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.