|
1 | | -name: test |
| 1 | +name: Build and Push Docker Image |
2 | 2 |
|
3 | 3 | on: |
4 | 4 | push: |
@@ -28,13 +28,13 @@ jobs: |
28 | 28 |
|
29 | 29 | - name: Build a docker image |
30 | 30 | run: | |
31 | | - docker build -t opensourcecobol/opensourcecobol4j:"$version_string_prefix"-debug . \ |
| 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 | | - docker tag opensourcecobol/opensourcecobol4j:"$version_string_prefix"-debug opensourcecobol/opensourcecobol4j:"$version_string_prefix"-debug-latest |
| 37 | + docker tag opensourcecobol/opensourcecobol4j:"$version_string_prefix" opensourcecobol/opensourcecobol4j:latest |
38 | 38 |
|
39 | 39 | - name: Login to Docker Hub |
40 | 40 | if: github.ref == 'main' && github.event_name == 'workflow_dispatch' && inputs.push_to_dockerhub == 'true' |
|
46 | 46 | - name: Push to Docker Hub |
47 | 47 | if: github.ref == 'main' && github.event_name == 'workflow_dispatch' && inputs.push_to_dockerhub == 'true' |
48 | 48 | run: | |
49 | | - docker push opensourcecobol/opensourcecobol4j:"$version_string_prefix"-debug |
50 | | - docker push opensourcecobol/opensourcecobol4j:"$version_string_prefix"-debug-latest |
| 49 | + docker push opensourcecobol/opensourcecobol4j:"$version_string_prefix" |
| 50 | + docker push opensourcecobol/opensourcecobol4j:latest |
51 | 51 |
|
52 | 52 | utf8-build: |
53 | 53 | runs-on: ubuntu-latest |
|
64 | 64 |
|
65 | 65 | - name: Build a docker image |
66 | 66 | run: | |
67 | | - docker build -t opensourcecobol/opensourcecobol4j:utf8-"$version_string_prefix"-debug . \ |
| 67 | + docker build -t opensourcecobol/opensourcecobol4j:utf8-"$version_string_prefix" . \ |
68 | 68 | --build-arg opensource_COBOL_4J_version="$opensource_COBOL_4J_version" \ |
69 | 69 | --build-arg Open_COBOL_ESQL_4J_version="$Open_COBOL_ESQL_4J_version" |
70 | 70 |
|
|
78 | 78 | - name: Push to Docker Hub |
79 | 79 | if: github.ref == 'main' && github.event_name == 'workflow_dispatch' && inputs.push_to_dockerhub == 'true' |
80 | 80 | run: | |
81 | | - docker push opensourcecobol/opensourcecobol4j:utf8-"$version_string_prefix"-debug |
| 81 | + docker push opensourcecobol/opensourcecobol4j:utf8-"$version_string_prefix" |
0 commit comments