Skip to content

Commit c71a3b5

Browse files
committed
Update publish-docker-image.yml
1 parent 0f579ed commit c71a3b5

File tree

1 file changed

+18
-4
lines changed

1 file changed

+18
-4
lines changed

.github/workflows/publish-docker-image.yml

Lines changed: 18 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -49,9 +49,9 @@ jobs:
4949
ref: ${{ inputs.ref || github.ref }}
5050

5151
- name: CSpell Version
52+
id: cspell-version
5253
run: |
53-
export CSPELL_VERSION=$(jq -r ".dependencies.cspell | sub(\"[_^]\"; \"\")" package.json)
54-
echo CSPELL_VERSION=$CSPELL_VERSION >> $GITHUB_ENV
54+
echo CSPELL_VERSION=$(jq -r ".dependencies.cspell | sub(\"[_^]\"; \"\")" package.json) >> "$GITHUB_OUTPUT"
5555
5656
- name: Log in to the Container registry
5757
uses: docker/login-action@5e57cd118135c172c3672efd75eb46360885c0ef
@@ -66,15 +66,15 @@ jobs:
6666
with:
6767
images: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}
6868
tags: |
69-
type=semver,pattern={{version}},value=${{ env.CSPELL_VERSION }}
69+
type=semver,pattern={{version}},value=${{ steps.cspell-version.outputs.CSPELL_VERSION }}
7070
labels: |
7171
org.opencontainers.image.title=cspell
7272
org.opencontainers.image.description=CSpell command line spell checker for code and other documents.
7373
org.opencontainers.image.vendor=Street Side Software
7474
7575
- name: Log Docker metadata
7676
env:
77-
META: $${{ toJSON(steps.meta.outputs) }}
77+
META: ${{ toJSON(steps.meta.outputs) }}
7878
run: echo "$META"
7979

8080
- name: Build and push Docker image
@@ -85,4 +85,18 @@ jobs:
8585
push: true
8686
tags: ${{ steps.meta.outputs.tags }}
8787
labels: ${{ steps.meta.outputs.labels }}
88+
89+
- name: Summary
90+
uses: streetsidesoftware/actions/public/summary@v1
91+
with:
92+
text: |
93+
**CSpell Version:** ${{ steps.cspell-version.outputs.CSPELL_VERSION }}
94+
**Docker Image:** ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}
95+
**Tags:** ${{ steps.meta.outputs.tags }}
96+
**Labels:** ${{ steps.meta.outputs.labels }}
97+
**ref:** ${{ inputs.ref }}
98+
**github.ref:** ${{ github.ref }}
99+
**Dry Run:** ${{ inputs.dryRun }}
100+
**Debug:** ${{ env.DEBUG }}
101+
88102
# cspell:ignore opencontainers

0 commit comments

Comments
 (0)