diff --git a/mods.yaml b/mods.yaml new file mode 100644 index 00000000000..727e08348ad --- /dev/null +++ b/mods.yaml @@ -0,0 +1,51 @@ +package: + name: mods + version: 1.2.1 + epoch: 0 + description: AI on the command line! + copyright: + - license: MIT + +environment: + contents: + packages: + - busybox + - ca-certificates-bundle + - go + environment: + CGO_ENABLED: "0" + +pipeline: + - uses: git-checkout + with: + repository: https://github.com/charmbracelet/mods + tag: v${{package.version}} + expected-commit: db3a762d2b9ea4374e98099d029f6568b6778d97 + + - uses: go/build + with: + packages: . + repository: https://github.com/charmbracelet/mods + ldflags: | + -s -w + -X main.Version=${{package.version}} + -X main.CommitSHA=$(git rev-parse HEAD) + -X main.CommitDate=$(date -u +"%Y-%m-%dT%H:%M:%SZ") + output: mods + + - uses: strip + +update: + enabled: true + github: + identifier: charmbracelet/mods + strip-prefix: v + +test: + environment: + contents: + packages: + - wolfi-base + pipeline: + - runs: | + mods --version