Some checks are pending
CI / lint-and-test (push) Waiting to run
Retains immutable Artifact Registry image digests and makes GCP readiness workflows fail after uploading evidence when readiness checks fail.
11 lines
381 B
Python
11 lines
381 B
Python
from pathlib import Path
|
|
|
|
|
|
def test_gcp_artifact_workflow_retains_immutable_image_digest() -> None:
|
|
workflow = Path(".github/workflows/gcp-artifact.yml").read_text()
|
|
|
|
assert "docker push" in workflow
|
|
assert "tee docker-push.log" in workflow
|
|
assert "image_digest=" in workflow
|
|
assert "image_ref=" in workflow
|
|
assert "test -n \"${image_digest}\"" in workflow
|