Closed CodeGat closed 7 months ago
Prerelease looks like this:
gitGraph
commit id: "2024.01.1" type: HIGHLIGHT tag: "2024.01.01"
branch pre-2024.01.2
checkout pre-2024.01.2
commit id: "access-om2_2024.01.2-1"
commit id: "access-om2_2024.01.2-2"
commit id: "access-om2_2024.01.2-3"
checkout main
merge pre-2024.01.2 id: "2024.01.2" type: HIGHLIGHT tag: "2024.01.2"
In this PR:
* cd.yml: Moved tagging logic to before deployment
This fixes up the issue of the
spack.yaml
file (specifically, thespack.specs
access-om2@git.tag
) looking to clone the tag that doesn't exist (yet). We add a rolling tag for the prerelease branch so the build can progress, and then when it is merged, place the tag in it's rightful position on themain
branch.This 'rolling tag' logic is noted here:
And then when the next commit comes along:
and then when merged: