{"id":13411250,"url":"https://github.com/opnlabs/dot","last_synced_at":"2025-03-14T17:30:28.014Z","repository":{"id":205613024,"uuid":"710437871","full_name":"opnlabs/dot","owner":"opnlabs","description":"A minimal continuous integration system. Uses docker to run jobs concurrently in stages.","archived":false,"fork":false,"pushed_at":"2024-07-30T10:22:26.000Z","size":8029,"stargazers_count":15,"open_issues_count":5,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2024-07-31T20:45:20.658Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"Go","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/opnlabs.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-10-26T17:32:35.000Z","updated_at":"2024-07-18T18:29:01.000Z","dependencies_parsed_at":"2023-12-19T06:45:42.203Z","dependency_job_id":"0b2ecb9b-9b2d-48b2-bba7-e0e525fbd419","html_url":"https://github.com/opnlabs/dot","commit_stats":null,"previous_names":["cvhariharan/dot","opnlabs/dot"],"tags_count":6,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/opnlabs%2Fdot","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/opnlabs%2Fdot/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/opnlabs%2Fdot/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/opnlabs%2Fdot/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/opnlabs","download_url":"https://codeload.github.com/opnlabs/dot/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243618578,"owners_count":20320261,"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-07-30T20:01:12.430Z","updated_at":"2025-03-14T17:30:27.527Z","avatar_url":"https://github.com/opnlabs.png","language":"Go","readme":"# Dot\n[![Go Reference](https://pkg.go.dev/badge/github.com/opnlabs/dot.svg)](https://pkg.go.dev/github.com/opnlabs/dot) [![Dot](https://github.com/opnlabs/dot/actions/workflows/main.yml/badge.svg)](https://github.com/opnlabs/dot/actions/workflows/main.yml) [![Go Report Card](https://goreportcard.com/badge/github.com/cvhariharan/dot)](https://goreportcard.com/report/github.com/cvhariharan/dot) [![Codacy Badge](https://app.codacy.com/project/badge/Coverage/1a5800bae3c143c29e3559e3f46bffb1)](https://app.codacy.com/gh/opnlabs/dot/dashboard?utm_source=gh\u0026utm_medium=referral\u0026utm_content=\u0026utm_campaign=Badge_coverage)\n\nA minimal CI. Designed to be local first.\n\nAll the jobs run inside docker containers. `Dot` communicates with the Docker daemon using the [Docker client API](https://pkg.go.dev/github.com/docker/docker/client#section-readme).\n\nRefer the project [wiki](https://github.com/opnlabs/dot/wiki) to learn more about dot.\n\n\u003cp align=\"center\"\u003e\n    \u003cimg src=\"images/demo.gif\" width=\"800\"\u003e\n\u003cp\u003e\n\n## Features\n- Single binary, can run anywhere, on your machine or CI/CD systems\n- Multi stage builds with support for build artifacts\n- Simple yaml job definition\n- Bring your own Docker images. Supports private registries\n- Uses plain Docker\n- Supports conditional evaluation using expressions\n\n## Installation\nGet the latest version from the [releases](https://github.com/opnlabs/dot/releases) section.\n\nThe latest version can also be installed using `go`.\n```bash\ngo install github.com/opnlabs/dot@latest\n```\n\n### Run using Docker\n```bash\ndocker run -it -v /var/run/docker.sock:/var/run/docker.sock -v /path/to/project:/app ghcr.io/opnlabs/dot:latest -m\n```\n\n## Example\nThis example uses [GoReleaser](https://github.com/goreleaser/goreleaser) to build this project.\n```yaml\nstages:\n  - test\n  - security\n  - build\n\njobs:\n  - name: Run tests\n    stage: test\n    image: \"docker.io/golang:1.21.3\"\n    variables:\n      - TEST: true\n    script:\n      - go test ./...\n    condition: TEST\n\n  - name: Run checks\n    stage: security\n    image: \"docker.io/golangci/golangci-lint:latest\"\n    script:\n      - golangci-lint run ./...\n\n  - name: Build using Goreleaser\n    stage: build\n    image: \"docker.io/golang:1.21.3-bookworm\"\n    script:\n      - git config --global safe.directory '*'\n      - curl -sfL https://goreleaser.com/static/run | bash -s -- build --snapshot\n    artifacts:\n      - dist\n```\nExtract the binary once the build is complete.\n```\ntar xvf .artifacts/artifacts-*.tar\ndist/dot_linux_amd64_v1/dot version\n```\n### Build Dot with Dot\nThis project can be built with `Dot`. The [dot.yml](dot.yml) file describes all the jobs necessary to build a linux binary. Clone the repo and run\n\n```bash\ngo run main.go -m\n```\nThis should create an artifact tar file in the `.artifacts` directory with the linux binary `dot`.\nThe `-m` flag gives `dot` access to the host's docker socket. This is required only if containers are created within `dot`.\n\u003cp align=\"center\"\u003e\n    \u003cimg src=\"https://media.tenor.com/rKLBka9zl5UAAAAd/yeah-excellent.gif\" width=\"40%\" height=\"40%\"\u003e\n\u003cp\u003e\n\n","funding_links":[],"categories":["Continuous Integration","持续集成"],"sub_categories":["Standard CLI","标准CLI"],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fopnlabs%2Fdot","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fopnlabs%2Fdot","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fopnlabs%2Fdot/lists"}