@@ -115,6 +115,8 @@ jobs:
115115 make SPHINXOPTS="-W" html
116116 make linkcheck
117117 working-directory : docs
118+ env :
119+ FORCE_COLOR : " 1"
118120
119121 docker-build :
120122 runs-on : ubuntu-latest
@@ -124,26 +126,15 @@ jobs:
124126 - uses : actions/checkout@v4
125127 - name : Determine tag/commit hash
126128 id : vars
127- run : |
128- # Strip git ref prefix from version
129- VERSION=$(echo "${{ github.ref }}" | sed -e 's,.*/\(.*\),\1,')
130-
131- # Strip "v" prefix from tag name (if present at all)
132- [[ "${{ github.ref }}" == "refs/tags/"* ]] && VERSION=$(echo $VERSION | sed -e 's/^v//')
133-
134- # Use Docker `latest` tag convention
135- [ "$VERSION" == "${{ inputs.main-branch }}" ] && VERSION=latest
136-
137- echo "tag=${VERSION}" >> $GITHUB_OUTPUT
138- echo "git_hash=${GITHUB_SHA}" >> $GITHUB_OUTPUT
129+ uses : maykinmedia/open-api-workflows/actions/extract-version@feature/extract-and-polish-reusable-actions
139130 - name : Build the Docker image
140131 run : |
141132 docker build \
142- --tag ${{ inputs.docker-image-name }}:${{ steps.vars.outputs.tag }} \
133+ --tag ${{ inputs.docker-image-name }}:${{ steps.vars.outputs.version }} \
143134 --build-arg COMMIT_HASH=${{ steps.vars.outputs.git_hash }} \
144- --build-arg RELEASE=${{ steps.vars.outputs.tag }} \
135+ --build-arg RELEASE=${{ steps.vars.outputs.version }} \
145136 .
146- - run : docker image save -o image.tar ${{ inputs.docker-image-name }}:${{ steps.vars.outputs.tag }}
137+ - run : docker image save -o image.tar ${{ inputs.docker-image-name }}:${{ steps.vars.outputs.version }}
147138 - name : Store image artifact
148139 uses : actions/upload-artifact@v4
149140 with :
0 commit comments