{"id":18954250,"url":"https://github.com/justinharringa/actions-s3_website","last_synced_at":"2025-10-30T04:23:02.867Z","repository":{"id":48831068,"uuid":"164265856","full_name":"justinharringa/actions-s3_website","owner":"justinharringa","description":"GitHub Action and Docker image to run s3_website (https://github.com/laurilehmijoki/s3_website/)","archived":false,"fork":false,"pushed_at":"2021-07-09T13:49:41.000Z","size":13,"stargazers_count":11,"open_issues_count":2,"forks_count":2,"subscribers_count":0,"default_branch":"master","last_synced_at":"2025-03-29T06:02:33.987Z","etag":null,"topics":["docker","docker-image","github-actions","jamstack","s3"],"latest_commit_sha":null,"homepage":"https://hub.docker.com/r/justinharringa/s3_website/","language":"Dockerfile","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/justinharringa.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2019-01-06T01:34:43.000Z","updated_at":"2023-05-12T16:53:28.000Z","dependencies_parsed_at":"2023-01-11T17:23:06.317Z","dependency_job_id":null,"html_url":"https://github.com/justinharringa/actions-s3_website","commit_stats":null,"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/justinharringa%2Factions-s3_website","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/justinharringa%2Factions-s3_website/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/justinharringa%2Factions-s3_website/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/justinharringa%2Factions-s3_website/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/justinharringa","download_url":"https://codeload.github.com/justinharringa/actions-s3_website/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":249184603,"owners_count":21226419,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["docker","docker-image","github-actions","jamstack","s3"],"created_at":"2024-11-08T13:44:29.694Z","updated_at":"2025-10-30T04:22:57.845Z","avatar_url":"https://github.com/justinharringa.png","language":"Dockerfile","funding_links":[],"categories":[],"sub_categories":[],"readme":"# GitHub Action / Docker container for s3_website\nGitHub Action and [Docker container](https://hub.docker.com/r/justinharringa/s3_website/) \nto run [s3_website](https://github.com/laurilehmijoki/s3_website/)\n\n## Docker Usage\nThis container has been published to Docker Hub and can be used as a container. To run it,\nyou'd run something like: \n\n```\ndocker run --rm -e AWS_ACCESS_KEY_ID -e AWS_SECRET_ACCESS_KEY \n-e S3_BUCKET -e AWS_CLOUDFRONT_DISTRIBUTION --mount type=bind,source=\"$(pwd)\",target=/site,readonly \njustinharringa/s3_website push --site _site\n```\n\nIf you don't pass any arguments you'll see the equivalent of `s3_website help`. Note that you'll mount\nyour host location into `/site` and will also need to pass in any environment variables that your\n`s3_website.yml` or `s3_website` itself requires.\n\n[Docker Hub - justinharringa/s3_website](https://hub.docker.com/r/justinharringa/s3_website/)\n\n## GitHub Actions Usage\nThe following example uses this GitHub Action to push the contents of the `build` folder to an \nS3 bucket and update a CloudFront distribution. It still requires that you provide an `s3_website.yml`\nsuch as [s3_website.yml](/example/s3_website.yml).\n\n```\n      - name: Deploy\n        uses: docker://justinharringa/s3_website:master\n        with:\n          args: 'push --site build'\n        env:\n          AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }}\n          AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }}\n          S3_BUCKET: ${{ secrets.S3_BUCKET }}\n          AWS_CLOUDFRONT_DISTRIBUTION: ${{ secrets.AWS_CLOUDFRONT_DISTRIBUTION }}\n```\n\n## Why?\nI have been using s3_website for quite some time and it works great \n(huge thanks to [Lauri Lehmijoki](https://github.com/laurilehmijoki) / \n[Philippe Creux](https://github.com/pcreux)!!). I am giving GitHub Actions a shot and want to\nuse s3_website within a Docker container both in GitHub Actions and also for some other workflows\nwhere I don't really want to have to worry about making sure the Java/Ruby bits are correct and\navailable. Thus far, this seems to work out quite well. Ideally, I'd like to contribute the Dockerfile\nto [s3_website](https://github.com/laurilehmijoki/s3_website/).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjustinharringa%2Factions-s3_website","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjustinharringa%2Factions-s3_website","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjustinharringa%2Factions-s3_website/lists"}