Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,8 @@ gate`, which fails first on an install that skips the firewall (`sfw check`), a
that is not one task (`taskgate`), or a workflow actionlint refuses or that uses an action by a
tag (`task lint:workflows`). That task, `versions` (which pins are behind) and `bump NAME=<entry>`
are go-tools' own, the same in every spin-stack repository: the Taskfile includes them and
defines none. A source's pin moves with `task sources:bump`, below, not with `bump`.
defines none. A source's pin moves with `task sources:bump`, below: its entry in `versions.yaml`
says so (`bump:`), and `bump` refuses it.

- **The sources are pinned** in `versions.yaml`, go-tools' versions format, held by
`tools/sources/repo_test.go` as every spin-stack repository is: spin, spin-terraform-aws and
Expand Down
15 changes: 10 additions & 5 deletions Taskfile.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,16 +25,21 @@ vars:
GID:
sh: id -g

# versions, bump, lint:workflows, release and consumers are go-tools' (its cmd/task/tasks.yml),
# the same in every spin-stack repository. No vars: the site cuts no release and nobody copies
# from it, so release and consumers refuse here.
# versions, bump, lint:workflows, release and consumers are go-tools' (its
# internal/tasks/tasks.yml), the same in every spin-stack repository. Nobody copies from the
# site, so consumers refuses here.
#
# bump moves any one pin and nothing else. A source's pin (spin, spin-terraform-aws, brand) moves
# with sources:bump, which also refuses a release the site cannot take yet and fetches it.
# bump moves any one pin but a source's. spin, spin-terraform-aws and brand say in versions.yaml
# (bump:) that sources:bump moves them, which also refuses a release the site cannot take yet
# and fetches it; bump refuses them and names it.
includes:
common:
taskfile: "{{.GO_TOOLS_TASKS}}"
flatten: true
vars:
RELEASE:
map:
none: "pages.yml uploads every push to main to Cloudflare Pages, so the site is deployed and no tag or release names a version of it"

tasks:
# The images are versions.yaml's (versions args). GITHUB_TOKEN, when set, is what sfw downloads
Expand Down
2 changes: 1 addition & 1 deletion go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ toolchain go1.27.3
require (
github.com/hashicorp/hcl/v2 v2.20.1
github.com/hashicorp/terraform-config-inspect v0.0.0-20260904064934-75d64de68c31
github.com/spin-stack/go-tools v0.20261122.5
github.com/spin-stack/go-tools v0.20261122.6
github.com/zclconf/go-cty v1.14.4
)

Expand Down
4 changes: 2 additions & 2 deletions go.sum
Original file line number Diff line number Diff line change
Expand Up @@ -30,8 +30,8 @@ github.com/opencontainers/image-spec v1.1.1 h1:y0fUlFfIZhPF1W537XOLg0/fcx6zcHCJw
github.com/opencontainers/image-spec v1.1.1/go.mod h1:qpqAh3Dmcf36wStyyWU+kCeDgrGnAve2nCC8+7h8Q0M=
github.com/sirupsen/logrus v1.9.4 h1:TsZE7l11zFCLZnZ+teH4Umoq5BhEIfIzfRDZ1Uzql2w=
github.com/sirupsen/logrus v1.9.4/go.mod h1:ftWc9WdOfJ0a92nsE2jF5u5ZwH8Bv2zdeOC42RjbV2g=
github.com/spin-stack/go-tools v0.20261122.5 h1:KsHTqIpBGuCc2kyB+0xn6oU+QiiSerC3fuWRJ1KoesA=
github.com/spin-stack/go-tools v0.20261122.5/go.mod h1:E+Fw4T6GukPSmPlRNFT3OymrKnHzTGX1efcz1+l812c=
github.com/spin-stack/go-tools v0.20261122.6 h1:iL4HeSKi6TR6zai1WyGOnHq2/M6WqI6rIyeIGMQGMQ8=
github.com/spin-stack/go-tools v0.20261122.6/go.mod h1:E+Fw4T6GukPSmPlRNFT3OymrKnHzTGX1efcz1+l812c=
github.com/stretchr/testify v1.12.1 h1:EuwCh5fleGS7H32xRwO3wRGT7DxrDhLAT6FF8MpWDWE=
github.com/stretchr/testify v1.12.1/go.mod h1:MDEgiDPPsNp5cuIrHPPCyornHKgEVbtFUmoNlxoYthg=
github.com/zclconf/go-cty v1.14.4 h1:uXXczd9QDGsgu0i/QFR/hzI5NYCHLf6NQw/atrbnhq8=
Expand Down
3 changes: 3 additions & 0 deletions versions.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@
version: v20261114.01
pin: 51f7e0dea53e6f85aa855753766b688634487168
track: github-release
bump: go tool task sources:bump
note: >-
The release the site documents (D2: the newest, exactly). The daily sync moves it to the next
release, never back to an older one; spin main past it is in spin's "Site vs spin main"
Expand All @@ -21,6 +22,7 @@
version: v20261027.02
pin: 358445c95280923876ef3e95658fe45e367462a1
track: github-release
bump: go tool task sources:bump
note: >-
The module the AWS pages describe and pin, and images.json, the releases an installation can
run. Fetched with its tags: a page names the newest release the commit holds.
Expand All @@ -31,6 +33,7 @@
version: main
pin: c84791b70202e4ad1fe79fadef3217b13d5daf14
track: branch
bump: go tool task sources:bump
note: >-
The palette and the logos. brand cuts no releases, so its main is what it has to say. The
dashboard's screenshots are not brand's: they are spin's release's, site-shots.tar.gz.
Expand Down