{"id":13942215,"url":"https://github.com/jnovack/git-checkout","last_synced_at":"2026-02-10T23:07:56.392Z","repository":{"id":149908364,"uuid":"96475799","full_name":"jnovack/git-checkout","owner":"jnovack","description":"Basic git checkout builder or side container for workflows.","archived":false,"fork":false,"pushed_at":"2020-09-15T12:19:33.000Z","size":12,"stargazers_count":8,"open_issues_count":0,"forks_count":6,"subscribers_count":2,"default_branch":"master","last_synced_at":"2024-11-27T11:39:07.852Z","etag":null,"topics":["builder-container","docker","git"],"latest_commit_sha":null,"homepage":"","language":"Makefile","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/jnovack.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.md","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}},"created_at":"2017-07-06T22:06:49.000Z","updated_at":"2022-04-26T19:00:36.000Z","dependencies_parsed_at":null,"dependency_job_id":"a0fec6f0-f7a3-4136-b7e7-cd99206d7656","html_url":"https://github.com/jnovack/git-checkout","commit_stats":null,"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"purl":"pkg:github/jnovack/git-checkout","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jnovack%2Fgit-checkout","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jnovack%2Fgit-checkout/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jnovack%2Fgit-checkout/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jnovack%2Fgit-checkout/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/jnovack","download_url":"https://codeload.github.com/jnovack/git-checkout/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jnovack%2Fgit-checkout/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":266071519,"owners_count":23871940,"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":["builder-container","docker","git"],"created_at":"2024-08-08T02:01:45.331Z","updated_at":"2026-02-10T23:07:56.368Z","avatar_url":"https://github.com/jnovack.png","language":"Makefile","funding_links":[],"categories":["Makefile"],"sub_categories":[],"readme":"# git-checkout\n\nA tiny builder container for pulling source from git.\n\n## Usage\n\nThis container was designed as a builder container within a\n[multi-stage build](https://docs.docker.com/engine/userguide/eng-image/multistage-build/).\n\n```Dockerfile\n## Build Container\nFROM jnovack/git-checkout as builder\n\n### Set environment variables\nENV REPO=\"http://github.com/jnovack/git-checkout.git\"\nENV BRANCH=\"master\"\nENV HASH=\"HEAD\"\nRUN /checkout.sh\n\n## Application Container\nFROM alpine:latest\nCOPY --from=builder /src /app\n```\n\n## Environment Variables\n\n### REPO\n\n*(string, required)*\n\nA `http(s)://` or `ssh://` git repository url.\n\n### BRANCH\n\n*(string, optional)*\n\nThe name of your branch to download. (_Default:_ `master`)\n\n### HASH\n\n*(string, optional)*\n\nThe hash of the commit. (_Default:_ `HEAD`)\n\n### SSH_KEY\n\n*(string, optional, supports _FILE)*\n\nSSH private key for authenticated repository download.  `SSH_KEY` will always\noverride `SSH_KEY_FILE`, if provided.\n\n#### SSH_KEY_FILE\n\nIn the event you wish to store the key in Docker Secrets, or you want to mount\nin the file directly, you can set this to the file path within the container.\n\n```Dockerfile\n## Build Container\nFROM jnovack/git-checkout as builder\n\n### Set environment variables\nENV REPO=\"http://github.com/jnovack/git-checkout.git\"\nENV BRANCH=\"master\"\nENV HASH=\"HEAD\"\nENV SSH_KEY_FILE=\"/id_rsa\"\nCOPY ~/.ssh/id_rsa /id_rsa\nRUN /checkout.sh\n\n## Application Container\nFROM alpine:latest\nCOPY --from=builder /src /app\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjnovack%2Fgit-checkout","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjnovack%2Fgit-checkout","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjnovack%2Fgit-checkout/lists"}