Skip to content

Commit 63c956f

Browse files
committed
Improve CI workflow
1 parent 6919ddb commit 63c956f

1 file changed

Lines changed: 6 additions & 2 deletions

File tree

.github/workflows/ci.yml

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -112,6 +112,10 @@ jobs:
112112

113113
needs: [Hadolint, Perfecto, Aligo]
114114

115+
env:
116+
DOCKER_FILE: Dockerfile
117+
IMAGE_NAME: sslcli
118+
115119
steps:
116120
- name: Check event type
117121
run: |
@@ -146,11 +150,11 @@ jobs:
146150
- name: Build Docker image
147151
if: ${{ github.event_name == 'pull_request' }}
148152
run: |
149-
docker build -f Dockerfile -t sslcli .
153+
docker build -f ${{ env.DOCKER_FILE }} -t ${{ env.IMAGE_NAME }} .
150154
151155
- name: Show info about built Docker image
152156
uses: essentialkaos/docker-info-action@v1
153157
if: ${{ github.event_name == 'pull_request' }}
154158
with:
155-
image: sslcli
159+
image: ${{ env.IMAGE_NAME }}
156160
show-labels: true

0 commit comments

Comments
 (0)