Skip to content

Commit 0463ec1

Browse files
committed
Rename variable
1 parent 3c92c08 commit 0463ec1

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

.github/workflows/docker-latest.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ on:
1212
GLOBAL_IMAGE_NAME:
1313
required: true
1414
type: string
15-
GLOBAL_IMAGE_NAME_2:
15+
GLOBAL_IMAGE_NAME2:
1616
required: false
1717
type: string
1818
secrets:
@@ -72,9 +72,9 @@ jobs:
7272
run: docker push "${{ inputs.GLOBAL_REPO_NAME }}/${{ inputs.GLOBAL_IMAGE_NAME }}"
7373

7474
- name: (Maybe) push image with more names
75-
run: if [ -z ${{GLOBAL_IMAGE_NAME_2}} ]; then \
76-
docker tag "${{ inputs.GLOBAL_REPO_NAME }}/${{ inputs.GLOBAL_IMAGE_NAME }}" "${{ inputs.GLOBAL_REPO_NAME }}/${{ inputs.GLOBAL_IMAGE_NAME_2 }}" && \
77-
docker push "${{ inputs.GLOBAL_REPO_NAME }}/${{ inputs.GLOBAL_IMAGE_NAME_2 }}"
75+
run: if [ -z ${{GLOBAL_IMAGE_NAME2}} ]; then \
76+
docker tag "${{ inputs.GLOBAL_REPO_NAME }}/${{ inputs.GLOBAL_IMAGE_NAME }}" "${{ inputs.GLOBAL_REPO_NAME }}/${{ inputs.GLOBAL_IMAGE_NAME2 }}" && \
77+
docker push "${{ inputs.GLOBAL_REPO_NAME }}/${{ inputs.GLOBAL_IMAGE_NAME2 }}"
7878

7979
- name: Slack notification
8080
if: failure()

0 commit comments

Comments
 (0)