File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff 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
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 }}
You can’t perform that action at this time.
0 commit comments