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
5 changes: 3 additions & 2 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -143,11 +143,12 @@ jobs:
- name: Compute Docker tags
id: docker_tags
run: |
OWNER_LC="$(printf '%s' "$GITHUB_REPOSITORY_OWNER" | tr '[:upper:]' '[:lower:]')"
{
echo "tags<<EOF"
echo "ghcr.io/${GITHUB_REPOSITORY_OWNER}/ableton-mind:${GITHUB_REF_NAME}"
echo "ghcr.io/${OWNER_LC}/ableton-mind:${GITHUB_REF_NAME}"
if [[ "$GITHUB_REF_NAME" != *-* ]]; then
echo "ghcr.io/${GITHUB_REPOSITORY_OWNER}/ableton-mind:latest"
echo "ghcr.io/${OWNER_LC}/ableton-mind:latest"
fi
echo "EOF"
} >> "$GITHUB_OUTPUT"
Expand Down
4 changes: 2 additions & 2 deletions docs/distribution.md
Original file line number Diff line number Diff line change
Expand Up @@ -113,8 +113,8 @@ docker run --rm -i --network host ableton-mind
Release workflow tags for stable releases:

```text
ghcr.io/Pantani/ableton-mind:v0.1.0
ghcr.io/Pantani/ableton-mind:latest
ghcr.io/pantani/ableton-mind:v0.1.0
ghcr.io/pantani/ableton-mind:latest
```

Prerelease tags keep only their exact version tag and do not move `latest`.
Expand Down
4 changes: 2 additions & 2 deletions docs/pt/distribution.md
Original file line number Diff line number Diff line change
Expand Up @@ -113,8 +113,8 @@ docker run --rm -i --network host ableton-mind
Tags do workflow de release para versoes estaveis:

```text
ghcr.io/Pantani/ableton-mind:v0.1.0
ghcr.io/Pantani/ableton-mind:latest
ghcr.io/pantani/ableton-mind:v0.1.0
ghcr.io/pantani/ableton-mind:latest
```

Prerelease tags mantem apenas a tag exata da versao e nao movem `latest`.
Expand Down
8 changes: 8 additions & 0 deletions tests/distribution-validation.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -103,6 +103,14 @@ describe(".github/workflows/*.yml — parseability + required keys", () => {
expect(rel).toMatch(/gh release (create|upload)/);
});

it("release.yml normalizes ghcr.io owner names to lowercase", () => {
const rel = read(".github/workflows/release.yml");
expect(rel).toContain("OWNER_LC=");
expect(rel).toContain("ghcr.io/${OWNER_LC}/ableton-mind:${GITHUB_REF_NAME}");
expect(rel).toContain("ghcr.io/${OWNER_LC}/ableton-mind:latest");
expect(rel).not.toContain("ghcr.io/${GITHUB_REPOSITORY_OWNER}/ableton-mind");
});

it("release.yml runs all release-readiness gates before publish steps", () => {
const rel = read(".github/workflows/release.yml");
expect(rel).toContain("npm run test:bridge");
Expand Down
Loading