-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Trying to fix GitHub workflow error, trying to leverage build cache
- Loading branch information
1 parent
9dc7251
commit aa5c06b
Showing
7 changed files
with
36 additions
and
27 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,8 @@ | ||
from tests.constants import VERSION | ||
from tests.utils import ImageTagComponents | ||
|
||
|
||
def test_build_version(image_reference) -> None: | ||
def test_build_version(image_reference: str, image_version: str) -> None: | ||
components: ImageTagComponents = ImageTagComponents.create_from_reference( | ||
image_reference | ||
) | ||
assert components.version == VERSION | ||
assert components.version == image_version |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,21 +1,9 @@ | ||
from pathlib import Path | ||
from random import randrange | ||
|
||
from semver import VersionInfo | ||
|
||
from build.utils import get_context, get_docker_bake_file | ||
from tests.utils import generate_image_references | ||
|
||
SLEEP_TIME: float = 3.0 | ||
REGISTRY_USERNAME: str = "foo" | ||
REGISTRY_PASSWORD: str = "bar" | ||
VERSION: str = str( | ||
VersionInfo( | ||
major=randrange(100), minor=randrange(100), patch=randrange(100) | ||
) | ||
) | ||
BAKE_FILE: Path = get_docker_bake_file() | ||
CONTEXT: Path = get_context() | ||
IMAGE_REFERENCES: list[str] = generate_image_references( | ||
BAKE_FILE, CONTEXT, VERSION | ||
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters