ci: push the latest tag when publishing the docker image

The deliver job only tagged the image with the git ref name and
conditionally 22.04, so aecgeeks/ifcopenshell:latest was never updated
and still served a 20.04 image with a Python mismatch, the failure
reported in issue 6488 and confirmed by aothms ("somehow the image is
not pushed to the latest tag"). Docker Hub shows latest last pushed
2024-06-08 while v0.8.0 and 22.04 were pushed 2025-04-04 by the same
workflow run. Also guard the conditional with an empty-string
alternative so a false condition cannot render the literal string
"false" into the tag list.

Generated with the assistance of an AI coding tool.
This commit is contained in:
Petru Conduraru
2026-07-20 00:43:32 +03:00
parent 89523999b3
commit 761f9a3155
+1 -1
View File
@@ -116,6 +116,6 @@ jobs:
repository: aecgeeks/ifcopenshell
# Since the dispatch is set to `tag`, `github.ref_name` should evaluate to the pushed tag
# On a workflow dispatch, `ref_name` will take on the value from the dispatch payload
tags: aecgeeks/ifcopenshell:${{ github.ref_name }}${{ github.ref_name == github.event.repository.default_branch && ',aecgeeks/ifcopenshell:22.04' }}
tags: aecgeeks/ifcopenshell:${{ github.ref_name }},aecgeeks/ifcopenshell:latest${{ github.ref_name == github.event.repository.default_branch && ',aecgeeks/ifcopenshell:22.04' || '' }}
file: ./Dockerfile
push: true