{"id":15715384,"url":"https://github.com/cloudflare/cfdeploy","last_synced_at":"2025-07-29T05:33:02.675Z","repository":{"id":66145831,"uuid":"100309831","full_name":"cloudflare/cfdeploy","owner":"cloudflare","description":"Cloudflare Deployment Tool","archived":false,"fork":false,"pushed_at":"2024-09-25T22:29:25.000Z","size":32,"stargazers_count":27,"open_issues_count":6,"forks_count":12,"subscribers_count":6,"default_branch":"master","last_synced_at":"2025-04-01T18:52:25.922Z","etag":null,"topics":["deploy","deploy-tool","deployer","deployment","docker","docker-image","marathon"],"latest_commit_sha":null,"homepage":null,"language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"bsd-3-clause","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/cloudflare.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":"2017-08-14T21:10:49.000Z","updated_at":"2024-09-30T00:55:36.000Z","dependencies_parsed_at":"2024-06-20T01:46:19.975Z","dependency_job_id":"4a18b7cc-26d1-49e7-b3ff-5b34212b5bb9","html_url":"https://github.com/cloudflare/cfdeploy","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/cloudflare/cfdeploy","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cloudflare%2Fcfdeploy","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cloudflare%2Fcfdeploy/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cloudflare%2Fcfdeploy/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cloudflare%2Fcfdeploy/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/cloudflare","download_url":"https://codeload.github.com/cloudflare/cfdeploy/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cloudflare%2Fcfdeploy/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":267633670,"owners_count":24118777,"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","status":"online","status_checked_at":"2025-07-29T02:00:12.549Z","response_time":2574,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"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":["deploy","deploy-tool","deployer","deployment","docker","docker-image","marathon"],"created_at":"2024-10-03T21:41:23.779Z","updated_at":"2025-07-29T05:33:02.649Z","avatar_url":"https://github.com/cloudflare.png","language":"Go","readme":"# Cloudflare Deployment Tool\n\n[![Build Status](https://travis-ci.org/cloudflare/cfdeploy.svg?branch=master)](https://travis-ci.org/cloudflare/cfdeploy)\n[![GoDoc](http://godoc.org/github.com/cloudflare/cfdeploy?status.svg)](http://godoc.org/github.com/cloudflare/cfdeploy)\n\nThis tool allows you to easily deploy Docker Image(s) to Marathon.\n\nFeatures:\n\n* Has a single dependency - Go\n* Validates your Marathon YAML file and converts to JSON\n* Checks that your Docker images are published *before* deploying to Marathon\n* Automatically interpolates image tags via customizable template\n    * e.g. `{{ .GitRevCount }}-{{ .GitRevShort }}` = `93-5814f5e`\n* Supports multiple deployment targets/environments\n\n## Installation\n\nAssuming:\n\n1. you have a correctly configured `$GOPATH`\n2. you have `$GOPATH/bin` in your `$PATH`\n\n```\ngo get -u github.com/cloudflare/cfdeploy\ncfdeploy # shows help message\n```\n\n## Setup\n\nCreate a `deploy.yaml` file alongside your Marathon `staging.yaml` and `prod.yaml` files such as this:\n\n```\nmarathon:\n  host: marathon.example.com\nimage:\n  repository: index.docker.io\n  tagTemplate: \"{{ .GitRevCount }}-{{ .GitRevShort }}\"\n\nenvironments:\n  prod:\n    marathon:\n      file: prod.yaml\n    images:\n      svc:\n        name: library/hello-world\n  staging:\n    marathon:\n      file: staging.yaml\n    images:\n      svc:\n        name: library/hello-world\n```\n\nThen, modify your Marathon files to have the Docker image replaced into them, e.g:\n\n```\n...\n    container:\n      type: DOCKER\n      docker:\n        image: {{ index .Images \"svc\" }}\n...\n```\n\nNote: the key `\"svc\"` must match the key under `environments.ENV.images.KEY` in your `deploy.yaml` file.\n\n## Usage\n\nIf you have direct (unauthenticated) access to your Marathon instance:\n\n`cfdeploy -e staging`\n\nor\n\n`cfdeploy -e staging -y` to skip the confirmation prompt.\n\nIf you need to specify a custom Marathon hostname or headers:\n\n```\ncfdeploy -e staging\n    -marathon.host my-marathon.example.com \\\n    -marathon.curlopts '-H \"OauthEmail: ...\" -H \"OauthAccessToken: ...\" -H \"OauthExpires: ...\"'\n```\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcloudflare%2Fcfdeploy","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcloudflare%2Fcfdeploy","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcloudflare%2Fcfdeploy/lists"}