Derive docker tags from git refs

This commit is contained in:
Tyler Kvochick
2024-09-23 16:03:34 -04:00
committed by Thomas Krijnen
parent 8f443a79f3
commit 040aec3e52
+3 -1
View File
@@ -116,6 +116,8 @@ jobs:
with:
context: artifacts
repository: aecgeeks/ifcopenshell
tags: aecgeeks/ifcopenshell:latest
# 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:latest' }}
file: ./Dockerfile
push: true