Skip to content

Commit c954507

Browse files
committed
Try again
1 parent 8425013 commit c954507

1 file changed

Lines changed: 9 additions & 8 deletions

File tree

.github/workflows/build-ssp.container.yaml

Lines changed: 9 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -22,15 +22,16 @@ jobs:
2222
uses: docker/setup-buildx-action@v3
2323

2424
- name: Create version tag
25-
id: version
25+
id: set_version
2626
run: |
2727
# Get the tag that triggered the workflow if it exists
2828
# If no tag exists, use the commit hash as the version
29-
if [ -n "${GITHUB_TAG}" ]; then
30-
echo "version=${GITHUB_TAG}" >> $GITHUB_OUTPUT
31-
else
32-
echo "version=${GITHUB_SHA}" >> $GITHUB_OUTPUT
33-
fi
29+
if [ -n "${GITHUB_TAG}" ]; then
30+
echo "version=${GITHUB_TAG}" >> $GITHUB_OUTPUT
31+
else
32+
echo "version=${GITHUB_SHA}" >> $GITHUB_OUTPUT
33+
fi
34+
shell: bash
3435

3536
- name: Login to GitHub Container Registry
3637
uses: docker/login-action@v3
@@ -48,5 +49,5 @@ jobs:
4849
tags: |
4950
ghcr.io/openconext/openconext-devssp/devssp:latest
5051
ghcr.io/openconext/openconext-devssp/devssp:${{ github.sha }}
51-
org.opencontainers.image.created: ${{ github.event.created_at }}
52-
org.opencontainers.image.version: ${{ version.output.version }}
52+
org.opencontainers.image.created: ${{ github.event.created_at }}
53+
org.opencontainers.image.version: ${{ steps.set_version.outputs.version }}

0 commit comments

Comments
 (0)