@@ -31,11 +31,17 @@ jobs:
31
31
docker build -t opensourcecobol/opensourcecobol4j:"$version_string_prefix" . \
32
32
--build-arg opensource_COBOL_4J_version="$opensource_COBOL_4J_version" \
33
33
--build-arg Open_COBOL_ESQL_4J_version="$Open_COBOL_ESQL_4J_version"
34
-
34
+
35
35
- name : Copy Docker image
36
36
run : |
37
37
docker tag opensourcecobol/opensourcecobol4j:"$version_string_prefix" opensourcecobol/opensourcecobol4j:latest
38
38
39
+ - name : Check the version of installed software
40
+ run : |
41
+ docker run --rm opensourcecobol/opensourcecobol4j:latest sh -c "cobj --version | grep 'opensource COBOL 4J $opensource_COBOL_4J_version'"
42
+ docker run --rm opensourcecobol/opensourcecobol4j:latest sh -c "! cobj --version | grep 'unicode/utf-8 support'"
43
+ docker run --rm opensourcecobol/opensourcecobol4j:latest sh -c "ocesql --version | grep 'Version $Open_COBOL_ESQL_4J_version'"
44
+
39
45
- name : Login to Docker Hub
40
46
if : github.ref == 'refs/heads/main' && github.event_name == 'workflow_dispatch' && inputs.push_to_dockerhub == 'true'
41
47
uses : docker/login-action@v3
65
71
- name : Build a docker image
66
72
run : |
67
73
docker build -t opensourcecobol/opensourcecobol4j:utf8-"$version_string_prefix" . -f utf8.Dockerfile \
68
- --build-arg opensource_COBOL_4J_version="$opensource_COBOL_4J_version" \
74
+ --build-arg opensource_COBOL_4J_version="$opensource_COBOL_4J_version"
75
+
76
+ - name : Check the version of installed software
77
+ run : |
78
+ docker run --rm opensourcecobol/opensourcecobol4j:utf8-"$version_string_prefix" sh -c "cobj --version | grep 'opensource COBOL 4J $opensource_COBOL_4J_version'"
79
+ docker run --rm opensourcecobol/opensourcecobol4j:utf8-"$version_string_prefix" sh -c "cobj --version | grep 'unicode/utf-8 support'"
69
80
70
81
- name : Login to Docker Hub
71
82
if : github.ref == 'refs/heads/main' && github.event_name == 'workflow_dispatch' && inputs.push_to_dockerhub == 'true'
0 commit comments