{"id":40585323,"url":"https://github.com/ambimax/action-docker-build","last_synced_at":"2026-01-21T03:04:15.568Z","repository":{"id":43149532,"uuid":"248219263","full_name":"ambimax/action-docker-build","owner":"ambimax","description":":zap::octocat: GitHub Action to build docker images","archived":false,"fork":false,"pushed_at":"2023-07-18T21:30:06.000Z","size":356,"stargazers_count":0,"open_issues_count":6,"forks_count":0,"subscribers_count":1,"default_branch":"v1","last_synced_at":"2023-08-19T04:41:43.353Z","etag":null,"topics":["docker","docker-compose","github-actions"],"latest_commit_sha":null,"homepage":"","language":"TypeScript","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/ambimax.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":"2020-03-18T11:58:46.000Z","updated_at":"2023-08-19T04:41:43.354Z","dependencies_parsed_at":"2022-09-07T22:12:40.288Z","dependency_job_id":null,"html_url":"https://github.com/ambimax/action-docker-build","commit_stats":null,"previous_names":[],"tags_count":0,"template":null,"template_full_name":null,"purl":"pkg:github/ambimax/action-docker-build","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ambimax%2Faction-docker-build","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ambimax%2Faction-docker-build/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ambimax%2Faction-docker-build/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ambimax%2Faction-docker-build/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ambimax","download_url":"https://codeload.github.com/ambimax/action-docker-build/tar.gz/refs/heads/v1","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ambimax%2Faction-docker-build/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28624341,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-21T02:47:06.670Z","status":"ssl_error","status_checked_at":"2026-01-21T02:45:44.886Z","response_time":86,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"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-compose","github-actions"],"created_at":"2026-01-21T03:03:16.043Z","updated_at":"2026-01-21T03:04:15.561Z","avatar_url":"https://github.com/ambimax.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"\u003ch1 align=\"center\"\u003eambimax/action-docker-build\u003c/h1\u003e\n\n\u003cp align=\"center\"\u003e\n  GitHub Action to build docker images.\n\u003c/p\u003e\n\n\u003cbr\u003e\n\n\n## Introduction\n\nGitHub Action to build docker images.\n\n\n## Usage\n\nExample workflow:\n\n```yml\nname: Build image\n\non:\n  push:\n    branches:\n      - master\n\njobs:\n  build:\n    runs-on: ubuntu-latest\n\n    steps:\n      - uses: actions/checkout@v1\n      - uses: ambimax/action-docker-build@v1\n```\n\n\u003c!-- region:examples start --\u003e\n### [dockerfile](test/01-dockerfile)\n\nBuild a single docker file in the root of the repository.\n\n```yml\n      - uses: ambimax/action-docker-build@v1\n```\n\n### [dockerfile-custom](test/02-dockerfile-custom)\n\nBuild a dockerfile from a custom directory.\n\n**NOTE** The build context will still be the root of the repository.\n\n\n```yml\n      - uses: ambimax/action-docker-build@v1\n        with:\n          dockerfile: docker/Dockerfile\n```\n\n### [dockerfile-context](test/03-dockerfile-context)\n\nBuild a dockerfile from a custom context.\n\n\n```yml\n      - uses: ambimax/action-docker-build@v1\n        with:\n          context: packages/hello-world\n          dockerfile: packages/hello-world/Dockerfile\n```\n\n### [dockercompose](test/04-dockercompose)\n\nBuild a docker-compose.yml.\n\n\n```yml\n      - uses: ambimax/action-docker-build@v1\n        with:\n          composefile: docker-compose.yml\n          tag: hello-world\n```\n\n### [dockerfile-private-registry](test/05-dockerfile-private-registry)\n\nBuild a Dockerfile that needs an image from a private registry.\n\n\n```yml\n      - uses: ambimax/action-docker-build@v1\n        with:\n          dockerfile: dockerfiles/Dockerfile.fpm\n          tag: node-exec-opt-app-index\n          registry: docker-registry.ambimax.xyz\n          username: test\n          password: test\n```\n\n### [dockerfile-tags](test/06-dockerfile-tags)\n\nBuild an image from a Dockerfile with multiple tags.\n\n\n```yml\n      - uses: ambimax/action-docker-build@v1\n        with:\n          dockerfile: dockerfiles/Dockerfile\n          tags: |\n            hello-world:latest\n            hello-world:c0ffee\n            hello-world:f00babe\n```\n\u003c!-- region:examples end --\u003e\n\n\n## Available parameters\n\n\u003c!-- region:parameters start --\u003e\n| Name | description | required | default |\n|-|-|-|-|\n| dockerfile | The Dockerfile to build. | false | Dockerfile |\n| composefile | The docker-compose file to build. Providing this input will ignore: dockerfile, context, tag | false |  |\n| context | The build context to use. | false | . |\n| tag | The tag to use for the image.\u003cbr\u003e\u003cbr\u003eRequired for dockerfile building.\u003cbr\u003e | false | docker-image:latest |\n| tags | To use multiple tags for the image.\u003cbr\u003eUse '|' and line breaks.\u003cbr\u003eRequired for dockerfile building if no 'tag' property is provided.\u003cbr\u003e | false |  |\n| registry | The private registry that is referenced in a Dockerfile or docker-compose.yml. Required with `username` and `password`. | false |  |\n| username | The login username for the private registry. Required with `registry` and `password`. | false |  |\n| password | The login password for the private registry. Required with `registry` and `username`. | false |  |\n\u003c!-- region:parameters end --\u003e\n\n\n## Development\n\nClone this repository\n\n```\ngit clone https://github.com/ambimax/action-docker-build\n```\n\nInstall all dependencies\n\n```\nyarn\n```\n\nBuild the project\n\n```\nyarn build\n```\n\nOnce done, commit the dist folder to a new feature branch and create a pull request.\n\n**NOTE** This project makes heavy use of code generation. You really only want to edit action.yml, src/index.ts and the test folder. Sections in this readme marked with \\\u003c!-- region:xyz start --\u003e...\\\u003c!-- region:xyz end --\u003e are autogenerated.\n\n\n## License\n\n[MIT](LICENSE)\n\n\n## Author Information\n\n- [Tobias Faust](https://github.com/FaustTobias), [ambimax® GmbH](https://ambimax.de)\n- [Dominik Wißler](https://github.com/Wysselbie), [ambimax® GmbH](https://ambimax.de)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fambimax%2Faction-docker-build","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fambimax%2Faction-docker-build","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fambimax%2Faction-docker-build/lists"}