Skip to content

Commit 9373b44

Browse files
fix: apply copilot suggestions
1 parent a9ccf44 commit 9373b44

File tree

3 files changed

+7
-8
lines changed

3 files changed

+7
-8
lines changed

.github/workflows/ci.yml

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -37,14 +37,14 @@ jobs:
3737
docker tag opensourcecobol/opensourcecobol4j:"$version_string_prefix" opensourcecobol/opensourcecobol4j:latest
3838
3939
- name: Login to Docker Hub
40-
if: github.ref == 'main' && github.event_name == 'workflow_dispatch' && inputs.push_to_dockerhub == 'true'
40+
if: github.ref == 'refs/heads/main' && github.event_name == 'workflow_dispatch' && inputs.push_to_dockerhub == 'true'
4141
uses: docker/login-action@v3
4242
with:
4343
username: ${{ secrets.DOCKERHUB_USERNAME }}
4444
password: ${{ secrets.DOCKERHUB_TOKEN }}
4545

4646
- name: Push to Docker Hub
47-
if: github.ref == 'main' && github.event_name == 'workflow_dispatch' && inputs.push_to_dockerhub == 'true'
47+
if: github.ref == 'refs/heads/main' && github.event_name == 'workflow_dispatch' && inputs.push_to_dockerhub == 'true'
4848
run: |
4949
docker push opensourcecobol/opensourcecobol4j:"$version_string_prefix"
5050
docker push opensourcecobol/opensourcecobol4j:latest
@@ -64,18 +64,17 @@ jobs:
6464
6565
- name: Build a docker image
6666
run: |
67-
docker build -t opensourcecobol/opensourcecobol4j:utf8-"$version_string_prefix" . \
67+
docker build -t opensourcecobol/opensourcecobol4j:utf8-"$version_string_prefix" . -f utf8.Dockerfile \
6868
--build-arg opensource_COBOL_4J_version="$opensource_COBOL_4J_version" \
69-
--build-arg Open_COBOL_ESQL_4J_version="$Open_COBOL_ESQL_4J_version"
7069
7170
- name: Login to Docker Hub
72-
if: github.ref == 'main' && github.event_name == 'workflow_dispatch' && inputs.push_to_dockerhub == 'true'
71+
if: github.ref == 'refs/heads/main' && github.event_name == 'workflow_dispatch' && inputs.push_to_dockerhub == 'true'
7372
uses: docker/login-action@v3
7473
with:
7574
username: ${{ secrets.DOCKERHUB_USERNAME }}
7675
password: ${{ secrets.DOCKERHUB_TOKEN }}
7776

7877
- name: Push to Docker Hub
79-
if: github.ref == 'main' && github.event_name == 'workflow_dispatch' && inputs.push_to_dockerhub == 'true'
78+
if: github.ref == 'refs/heads/main' && github.event_name == 'workflow_dispatch' && inputs.push_to_dockerhub == 'true'
8079
run: |
8180
docker push opensourcecobol/opensourcecobol4j:utf8-"$version_string_prefix"

Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
# Build stage
22
FROM almalinux:9 AS builder
33

4-
ARG opensource_COBOL_4J_version=1.1.12 Open_COBOL_ESQL_4J_version=1.1.1
4+
ARG opensource_COBOL_4J_version=dummy_value Open_COBOL_ESQL_4J_version=dummy_value
55

66
SHELL ["/bin/bash", "-c"]
77

utf8.Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
# Build stage
22
FROM almalinux:9 AS builder
33

4-
ARG opensource_COBOL_4J_version=1.1.12 Open_COBOL_ESQL_4J_version=1.1.1
4+
ARG opensource_COBOL_4J_version=dummy_value
55

66
SHELL ["/bin/bash", "-c"]
77

0 commit comments

Comments
 (0)