{"id":15208942,"url":"https://github.com/extrawitz/11ty-dockerless-build","last_synced_at":"2025-04-18T00:33:08.657Z","repository":{"id":166292418,"uuid":"587465500","full_name":"extrawitz/11ty-dockerless-build","owner":"extrawitz","description":"Build 11ty (Eleventy) dockerless to be able to use i.e. eleventy-img pluging with gh-runners","archived":false,"fork":false,"pushed_at":"2023-08-18T10:20:14.000Z","size":35,"stargazers_count":4,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-04-15T23:12:22.806Z","etag":null,"topics":["eleventy","eleventy-plugin","eleventy-website","foss","gh-action","gh-actions-repo"],"latest_commit_sha":null,"homepage":"","language":null,"has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/extrawitz.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2023-01-10T20:17:41.000Z","updated_at":"2024-12-21T11:13:13.000Z","dependencies_parsed_at":"2024-09-28T07:05:04.113Z","dependency_job_id":"d8b7c1a6-ef11-4c2e-9a48-ecb63551e4bd","html_url":"https://github.com/extrawitz/11ty-dockerless-build","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/extrawitz%2F11ty-dockerless-build","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/extrawitz%2F11ty-dockerless-build/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/extrawitz%2F11ty-dockerless-build/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/extrawitz%2F11ty-dockerless-build/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/extrawitz","download_url":"https://codeload.github.com/extrawitz/11ty-dockerless-build/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":249167448,"owners_count":21223506,"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":["eleventy","eleventy-plugin","eleventy-website","foss","gh-action","gh-actions-repo"],"created_at":"2024-09-28T07:05:01.480Z","updated_at":"2025-04-15T23:12:25.219Z","avatar_url":"https://github.com/extrawitz.png","language":null,"funding_links":[],"categories":[],"sub_categories":[],"readme":"## Build Eleventy (11ty)\n\n![](IdthKOzqFA-350.avif)\n\nThis action fetches all dependencies via **npm install** which are specified in your **.eleventy.js** and builds then the website.\n\nNo docker is used. No root-permissions needed on your self-hosted runner\n\n### Features\n- this action runs flawless without root-permissions as docker is not used.\n- you can use most common plugins, i.e. **@11ty/eleventy-img** which ist not possible with docker-gh-actions.\n- You can pass custom args to the eleventy-command\n\n### Pre-Requisites\n- your site has to run smoothly on your local machine.\n- You need a proper \".eleventy.js\" file https://www.11ty.dev/docs/config/\n- You will need proper passthrough config i.e. for your assets-folder https://www.11ty.dev/docs/copy/\n- You need to have a **valid local package.json** in your repo, so that **npm** / **npx** works clean.\n\n### Example-Workflow\n\n```\nname: 11ty build\non: [push]\njobs:\n  build_deploy:\n   runs-on: self-hosted\n   steps:\n   - name: Checkout last commit of repository\n\t uses: actions/checkout@v3\n   - name: Install 11ty and build website\n\t uses: extrawitz/11ty-dockerless-build@v1\n   - name: Deploy\n\t uses: peaceiris/actions-gh-pages@v3\n\t with:\n\t  publish_dir: public\n\t  publish_branch: website\n\t  github_token: ${{ secrets.PSA }}\n```\n\n#### Use your custom args when building website with \"eleventy\"\n\nTo use your custom arguments, specify them in your workflow like in below example:\n\n```\nname: 11ty build\non: [push]\njobs:\n  build_deploy:\n   runs-on: self-hosted\n   steps:\n   - name: Checkout last commit of repository\n\t uses: actions/checkout@v3\n   - name: Install 11ty and build website\n\t uses: extrawitz/11ty-dockerless-build@v1\n\t with:\n\t  args: --formats=md,html,ejs\n   - name: Deploy\n\t uses: peaceiris/actions-gh-pages@v3\n\t with:\n\t  publish_dir: public\n\t  publish_branch: website\n\t  github_token: ${{ secrets.PSA }}\n```\n\nSee more details about this in eleventy-doc\nhttps://www.11ty.dev/docs/usage/\n\n### Pro-Tipp to keep your main-branch clean when working with Eleventy\n\nYou can exclude your public-folder from commits with adding a entry for the public folder into your .git/info/exclude file\n\n#### Example\n```\n# git ls-files --others --exclude-from=.git/info/exclude\n# Lines that start with '#' are comments.\n# For a project mostly in C, the following would be a good set of\n# exclude patterns (uncomment them if you want to use them):\n# *.[oa]\n# *~\n\npublic/*\n```\n\nMore Infos on that here https://git-scm.com/docs/gitignore#_description\n\nPS @ Microsoft - branch specific .gitignores would be alltough nice :-)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fextrawitz%2F11ty-dockerless-build","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fextrawitz%2F11ty-dockerless-build","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fextrawitz%2F11ty-dockerless-build/lists"}