docker-image-pin 0.2.0__py3-none-any.whl → 0.3.0__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- docker_image_pin/__init__.py +2 -1
- {docker_image_pin-0.2.0.dist-info → docker_image_pin-0.3.0.dist-info}/METADATA +2 -2
- docker_image_pin-0.3.0.dist-info/RECORD +6 -0
- docker_image_pin-0.2.0.dist-info/RECORD +0 -6
- {docker_image_pin-0.2.0.dist-info → docker_image_pin-0.3.0.dist-info}/WHEEL +0 -0
- {docker_image_pin-0.2.0.dist-info → docker_image_pin-0.3.0.dist-info}/entry_points.txt +0 -0
- {docker_image_pin-0.2.0.dist-info → docker_image_pin-0.3.0.dist-info}/licenses/LICENSE +0 -0
docker_image_pin/__init__.py
CHANGED
@@ -42,7 +42,7 @@ def main() -> int: # noqa: C901
|
|
42
42
|
|
43
43
|
for line in content.splitlines():
|
44
44
|
line = line.strip()
|
45
|
-
if not line.startswith("image:"):
|
45
|
+
if not (line.startswith(("image:", "FROM"))):
|
46
46
|
continue
|
47
47
|
|
48
48
|
if "#" in line:
|
@@ -57,6 +57,7 @@ def main() -> int: # noqa: C901
|
|
57
57
|
allow = None
|
58
58
|
|
59
59
|
line = line.removeprefix("image:").strip()
|
60
|
+
line = line.removeprefix("FROM").strip()
|
60
61
|
try:
|
61
62
|
rest, sha = line.split("@")
|
62
63
|
except ValueError:
|
@@ -1,7 +1,7 @@
|
|
1
1
|
Metadata-Version: 2.4
|
2
2
|
Name: docker-image-pin
|
3
|
-
Version: 0.
|
4
|
-
Summary: Checks if Docker images are properly pinned in docker-compose.yml files
|
3
|
+
Version: 0.3.0
|
4
|
+
Summary: Checks if Docker images are properly pinned in docker-compose.yml and Dockerfile files
|
5
5
|
Project-URL: bugs, https://github.com/GideonBear/docker-image-pin/issues
|
6
6
|
Project-URL: homepage, https://github.com/GideonBear/docker-image-pin
|
7
7
|
Author: GideonBear
|
@@ -0,0 +1,6 @@
|
|
1
|
+
docker_image_pin/__init__.py,sha256=Ijy6bcwtfkfEBuEiGmcAkGbWwgLusse8TtUswNcLF-M,2408
|
2
|
+
docker_image_pin-0.3.0.dist-info/METADATA,sha256=-IAwiFDViI26AcHIg41GrzCQ5iM98PTxhAoDWd7AA88,641
|
3
|
+
docker_image_pin-0.3.0.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
|
4
|
+
docker_image_pin-0.3.0.dist-info/entry_points.txt,sha256=RTVvI_T4QdIwZqB1kR4g71CxE8_KeAgj2mmYBeRwok0,59
|
5
|
+
docker_image_pin-0.3.0.dist-info/licenses/LICENSE,sha256=OXLcl0T2SZ8Pmy2_dmlvKuetivmyPd5m1q-Gyd-zaYY,35149
|
6
|
+
docker_image_pin-0.3.0.dist-info/RECORD,,
|
@@ -1,6 +0,0 @@
|
|
1
|
-
docker_image_pin/__init__.py,sha256=Y8vBfdSubUm7jsJyhx-6irMIvvJ4heiTYar_VVVq-S0,2343
|
2
|
-
docker_image_pin-0.2.0.dist-info/METADATA,sha256=hL1JfVcZlAmNiT_gopjXcgISE_2iH6LujMAWpsFhO2o,626
|
3
|
-
docker_image_pin-0.2.0.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
|
4
|
-
docker_image_pin-0.2.0.dist-info/entry_points.txt,sha256=RTVvI_T4QdIwZqB1kR4g71CxE8_KeAgj2mmYBeRwok0,59
|
5
|
-
docker_image_pin-0.2.0.dist-info/licenses/LICENSE,sha256=OXLcl0T2SZ8Pmy2_dmlvKuetivmyPd5m1q-Gyd-zaYY,35149
|
6
|
-
docker_image_pin-0.2.0.dist-info/RECORD,,
|
File without changes
|
File without changes
|
File without changes
|