fix(cd): include workflows in api docker context
Some checks failed
CD Pipeline / workflow-shape (push) Successful in 0s
CD Pipeline / cancel-stale-cd (push) Has been skipped
CD Pipeline / tests (push) Successful in 2m18s
CD Pipeline / build-and-deploy (push) Successful in 4m51s
CD Pipeline / post-deploy-checks (push) Has been cancelled
Some checks failed
CD Pipeline / workflow-shape (push) Successful in 0s
CD Pipeline / cancel-stale-cd (push) Has been skipped
CD Pipeline / tests (push) Successful in 2m18s
CD Pipeline / build-and-deploy (push) Successful in 4m51s
CD Pipeline / post-deploy-checks (push) Has been cancelled
This commit is contained in:
@@ -49,8 +49,11 @@ def test_product_awoooi_manifest_standard_endpoint_returns_snapshot():
|
||||
|
||||
|
||||
def test_api_image_copies_product_manifest() -> None:
|
||||
dockerfile = Path(__file__).resolve().parents[3] / "apps" / "api" / "Dockerfile"
|
||||
repo_root = Path(__file__).resolve().parents[3]
|
||||
dockerfile = repo_root / "apps" / "api" / "Dockerfile"
|
||||
dockerignore = repo_root / ".dockerignore"
|
||||
dockerfile_text = dockerfile.read_text(encoding="utf-8")
|
||||
dockerignore_text = dockerignore.read_text(encoding="utf-8")
|
||||
|
||||
assert (
|
||||
"COPY --chown=appuser:appuser product.awoooi.yaml ./product.awoooi.yaml"
|
||||
@@ -60,3 +63,7 @@ def test_api_image_copies_product_manifest() -> None:
|
||||
"COPY --chown=appuser:appuser .gitea/workflows/ ./.gitea/workflows/"
|
||||
in dockerfile_text
|
||||
)
|
||||
assert ".gitea\n" in dockerignore_text
|
||||
assert "!.gitea/workflows/\n" in dockerignore_text
|
||||
assert "!.gitea/workflows/*.yaml\n" in dockerignore_text
|
||||
assert "!.gitea/workflows/*.yml\n" in dockerignore_text
|
||||
|
||||
Reference in New Issue
Block a user