From 040aec3e52b91eb60b70c84c94f59655506bbc2e Mon Sep 17 00:00:00 2001 From: Tyler Kvochick Date: Mon, 23 Sep 2024 16:03:34 -0400 Subject: [PATCH] Derive docker tags from git refs --- .github/workflows/ci-ifcopenshell-docker.yml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/.github/workflows/ci-ifcopenshell-docker.yml b/.github/workflows/ci-ifcopenshell-docker.yml index ae8142375b..a1c7a336c1 100644 --- a/.github/workflows/ci-ifcopenshell-docker.yml +++ b/.github/workflows/ci-ifcopenshell-docker.yml @@ -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