From d399f73fe023ced34e8b5ef8e96187543ea74edd Mon Sep 17 00:00:00 2001 From: Zander Hill Date: Thu, 4 Jul 2024 16:14:50 -0700 Subject: [PATCH] (feat) Publish homebrew formula to main repository Related: https://github.com/dagu-dev/dagu/pull/597 With this change the homebrew formula can be installed as: brew tap dagu-dev/dagu brew install dagu-dev/dagu/dagu --- .goreleaser.yaml | 26 +++++++++++++++++++++----- HomebrewFormula | 1 + pkg/brew/.gitkeep | 0 pkg/brew/HomebrewFormula | 1 + 4 files changed, 23 insertions(+), 5 deletions(-) create mode 120000 HomebrewFormula create mode 100644 pkg/brew/.gitkeep create mode 120000 pkg/brew/HomebrewFormula diff --git a/.goreleaser.yaml b/.goreleaser.yaml index e2e89d97..30d5b980 100644 --- a/.goreleaser.yaml +++ b/.goreleaser.yaml @@ -20,22 +20,38 @@ builds: goarm: - 7 checksum: - name_template: 'checksums.txt' + name_template: "checksums.txt" snapshot: name_template: "{{ incpatch .Version }}-next" changelog: sort: asc filters: exclude: - - '^docs:' - - '^test:' + - "^docs:" + - "^test:" brews: + # DEPRECATED: prefer using dagu-dev/dagu for brew formula - repository: owner: yohamta name: homebrew-tap folder: Formula - homepage: 'https://github.com/dagu-dev/dagu' - description: 'A No-code workflow executor that runs DAGs defined in a simple YAML format' + homepage: "https://github.com/dagu-dev/dagu" + description: "A No-code workflow executor that runs DAGs defined in a simple YAML format" + license: "GNU General Public License v3.0" + custom_block: | + service do + run [opt_bin/"dagu", "start-all"] + keep_alive true + error_log_path var/"log/dagu.log" + log_path var/"log/dagu.log" + working_dir var + end + - repository: + owner: dagu-dev + name: homebrew-dagu + folder: pkg/brew + homepage: "https://github.com/dagu-dev/dagu" + description: "A No-code workflow executor that runs DAGs defined in a simple YAML format" license: "GNU General Public License v3.0" custom_block: | service do diff --git a/HomebrewFormula b/HomebrewFormula new file mode 120000 index 00000000..1ffaf042 --- /dev/null +++ b/HomebrewFormula @@ -0,0 +1 @@ +pkg/brew \ No newline at end of file diff --git a/pkg/brew/.gitkeep b/pkg/brew/.gitkeep new file mode 100644 index 00000000..e69de29b diff --git a/pkg/brew/HomebrewFormula b/pkg/brew/HomebrewFormula new file mode 120000 index 00000000..f92c2405 --- /dev/null +++ b/pkg/brew/HomebrewFormula @@ -0,0 +1 @@ +HomebrewFormula \ No newline at end of file