Skip to content

Commit ac9761a

Browse files
committed
fix: publish immutable ghcr version tags only (#59)
Signed-off-by: Michael Kantor <6068672+kantorcodes@users.noreply.github.com>
1 parent 081a6d0 commit ac9761a

2 files changed

Lines changed: 1 addition & 2 deletions

File tree

.github/workflows/publish.yml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -278,7 +278,6 @@ jobs:
278278
{
279279
echo "value<<EOF"
280280
echo "${IMAGE_NAME}:${VERSION}"
281-
echo "${IMAGE_NAME}:latest"
282281
echo "EOF"
283282
} >> "$GITHUB_OUTPUT"
284283
- uses: docker/setup-buildx-action@b5ca514318bd6ebac0fb2aedd5d36ec1b5c232a2

tests/test_action_bundle.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -108,7 +108,7 @@ def test_publish_workflow_attaches_marketplace_action_bundle() -> None:
108108
assert "docker/login-action@9780b0c442fbb1117ed29e0efdff1e18412f7567" in workflow_text
109109
assert "docker/build-push-action@263435318d21b8e681c14492fe198d362a7d2c83" in workflow_text
110110
assert "ghcr.io/${{ github.repository }}" in workflow_text
111-
assert "${IMAGE_NAME}:latest" in workflow_text
111+
assert "${IMAGE_NAME}:latest" not in workflow_text
112112
assert "org.opencontainers.image.version=${{ needs.build.outputs.version }}" in workflow_text
113113
e2e_workflow_text = (ROOT / ".github" / "workflows" / "e2e-test.yml").read_text(encoding="utf-8")
114114
assert e2e_workflow_text.count("install_source: local") == 5

0 commit comments

Comments
 (0)