{"id":19723514,"url":"https://github.com/remind101/docker-build","last_synced_at":"2025-04-29T22:30:59.403Z","repository":{"id":31565569,"uuid":"35130304","full_name":"remind101/docker-build","owner":"remind101","description":"A small script for building, tagging and pushing Docker images","archived":false,"fork":false,"pushed_at":"2024-12-05T00:30:50.000Z","size":58,"stargazers_count":9,"open_issues_count":1,"forks_count":8,"subscribers_count":75,"default_branch":"master","last_synced_at":"2025-04-05T20:03:19.301Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"Shell","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/remind101.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null}},"created_at":"2015-05-06T00:09:57.000Z","updated_at":"2024-02-06T15:08:31.000Z","dependencies_parsed_at":"2024-01-27T00:22:46.127Z","dependency_job_id":"2c64d793-eceb-4d33-877e-a0c518a7bc75","html_url":"https://github.com/remind101/docker-build","commit_stats":null,"previous_names":[],"tags_count":12,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/remind101%2Fdocker-build","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/remind101%2Fdocker-build/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/remind101%2Fdocker-build/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/remind101%2Fdocker-build/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/remind101","download_url":"https://codeload.github.com/remind101/docker-build/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":251592958,"owners_count":21614449,"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":[],"created_at":"2024-11-11T23:22:28.048Z","updated_at":"2025-04-29T22:30:59.093Z","avatar_url":"https://github.com/remind101.png","language":"Shell","funding_links":[],"categories":[],"sub_categories":[],"readme":"# docker-build\n\nRemind's standardized script and CircleCI Orb for building and pushing Docker\nimages.\n\n## Usage\n\nExample usage in a `.circleci/config.yml` file:\n\n```yaml\nversion: 2.1\n\norbs:\n  docker-build: remind101/docker-build@1\n\nworkflows:\n  main:\n    jobs:\n      - docker-build/build-push:\n          context:\n            - docker-hub\n            - aws-ecr\n```\n\nSee `docker-build --help` for more information on available commands.\n\n## Behavior\n\nImages are built using automatic `--cache-from` settings, with the\nequivalent of the `docker build .` command.\n\nImages are named after the repository that `docker-build` is being run on,\nwhich is computed using the built-in CircleCI env vars:\n`$CIRCLE_PROJECT_USERNAME/$CIRCLE_PROJECT_REPONAME`.\n\nMultiple images are tagged by default:\n\n- `latest`\n- `${CIRCLECI_BRANCH}`\n- `${CIRCLECI_BRANCH}-${CIRCLECI_BUILD_NUM}`\n- `${CIRCLECI_SHA1}`\n\nImages are published to Docker Hub and ECR.\n\nThe following env vars are required:\n\n- `DOCKER_USER`\n- `DOCKER_PASS`\n- `AWS_ECR_ACCOUNT_URL`\n- `AWS_REGION`\n- `AWS_ACCESS_KEY_ID`\n- `AWS_SECRET_ACCESS_KEY`\n\n### AWS ECR\n\nWhen pushing to ECR, vulnerability scanning is performed automatically.\n\nThe orb also installs an ECR lifecycle policy by default. This policy reduces\nthe accumulation of unused images by expiring all images expect for those with\ntags that have a `master` or `main` prefix after 90 days. Thus, this policy\nassumes that images that are deployed come from the `main` or `master`\nbranches, and are tagged using `${CIRCLECI_BRANCH}-${CIRCLECI_BUILD_NUM}`.\n\n## Releases\n\nTo release a new version, tag the release commit with `vX.Y.Z` (e.g. `v1.2.3`)\nand `git push --tags`. CircleCI will publish release versions for any tag\nstarting with `v`.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fremind101%2Fdocker-build","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fremind101%2Fdocker-build","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fremind101%2Fdocker-build/lists"}