Coder Social home page Coder Social logo

berlam / github-bucket Goto Github PK

View Code? Open in Web Editor NEW
60.0 6.0 12.0 112 KB

Deploy public or private GitHub repositories automatically to S3 buckets using Git and deploy keys.

License: ISC License

Java 100.00%
github lambda bucket s3 aws git s3-bucket amazon

github-bucket's Introduction

github-bucket's People

Contributors

berlam avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar

github-bucket's Issues

content-type issues upon transfer to S3

When I manually upload the files (html, JS and CSS) using the S3 "upload" option (in Actions), the correct content-types are applied i.e. "text/html" for HTML files.
When the same files are deployed to S3 from github - as a result of a PR merge - their Content-Type are being set to "application/octet-stream", which means the files to not render in the browser. Have you seen this behaviour? I'm using the built JAR file in the releases tab.

Can you please help me ?

Hi can you please help me in resolving this ?
My only aim is to sync my github repo to an s3 bucket, that's it.

I am posting my Cloud watch logs here, I'm not sure whats going on, It says The specified key does not exist and I am assuming WARN Repository:895 - close() called when useCnt is already zero This one is a jgit error.
REPORT RequestId: 23cd6bd6-2797-11e8-85bc-c716ee24b770 Duration: 3878.62 ms Billed Duration: 3900 ms Memory Size: 512 MB Max Memory Used: 137 MB
START RequestId: 8c4f6e0b-279b-11e8-8b04-85f379f9c477 Version: $LATEST

2018-03-14 15:22:46 <8c4f6e0b-279b-11e8-8b04-85f379f9c477> INFO Lambda:75 - Processing 'push' on 'refs/heads/master': 'bf32d8dc87f4640f9bd15e7ef72f91cf763404dd'

2018-03-14 15:22:46 <8c4f6e0b-279b-11e8-8b04-85f379f9c477> INFO Worker:39 - Starting repository synchronization

2018-03-14 15:22:46 <8c4f6e0b-279b-11e8-8b04-85f379f9c477> INFO Worker:55 - Finished repository synchronization

2018-03-14 15:22:46 <8c4f6e0b-279b-11e8-8b04-85f379f9c477> WARN Repository:895 - close() called when useCnt is already zero

2018-03-14 15:22:46 <8c4f6e0b-279b-11e8-8b04-85f379f9c477> ERROR Lambda:95 - The specified key does not exist. (Service: Amazon S3; Status Code: 404; Error Code: NoSuchKey; Request ID: 3809D68937A8EC21)

And I'm also not really sure what do you mean by this:
Place the generated key as .ssh/id_rsa and the known hosts file as .ssh/known_hosts in the S3 bucket. Can you please explain ?
I generated both the files and I'm not sure where to place them.

Final question when you say download the latest release from the release section. ( I am just downlaoding the .jar file and uploading it to the lambda console and I am not doing anything with the remaning 2 files) am I doing something wrong here ?

I would more than appreciate your reply, Thanks in advance.

lambda error during function creation

When creating the new blank Lambda function, what needs to be uploaded? Lambda asks for a ZIP or JAR file - what do we need to upload here? It's not clear from the README.

[Bug] Repository name with periods

I followed the steps to generate a deploy key and I set up the lambda exactly as prescribed, however I kept getting this USERAUTH Fail: https://gist.github.com/nsporillo/fbbcba61f36809ccf6fefc83560c424b

On a hunch, I updated my repository name to porillo-net. Suddenly everything works.

I suggest adding a note to the readme regarding repository naming, as I'm not sure it's necessarily a problem with github-bucket's code.

That aside, this is exactly what I was looking for. Great work!

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.