You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The latest version can also be installed using go.
go install github.com/opnlabs/dot@latest
Run using Docker
docker run -it -v /var/run/docker.sock:/var/run/docker.sock -v /path/to/project:/app ghcr.io/opnlabs/dot:latest -m
Example
This example uses GoReleaser to build this project.
stages:
- test
- security
- buildjobs:
- name: Run testsstage: testimage: "docker.io/golang:1.21.3"variables:
- TEST: truescript:
- go test ./...condition: TEST
- name: Run checksstage: securityimage: "docker.io/golangci/golangci-lint:latest"script:
- golangci-lint run ./...
- name: Build using Goreleaserstage: buildimage: "docker.io/golang:1.21.3-bookworm"script:
- git config --global safe.directory '*'
- curl -sfL https://goreleaser.com/static/run | bash -s -- build --snapshotartifacts:
- dist
Extract the binary once the build is complete.
tar xvf .artifacts/artifacts-*.tar
dist/dot_linux_amd64_v1/dot version
Build Dot with Dot
This project can be built with Dot. The dot.yml file describes all the jobs necessary to build a linux binary. Clone the repo and run
go run main.go -m
This should create an artifact tar file in the .artifacts directory with the linux binary dot.
The -m flag gives dot access to the host's docker socket. This is required only if containers are created within dot.
About
A minimal continuous integration system. Uses docker to run jobs concurrently in stages.