ARG PIXI_GIT_IMAGE

FROM $PIXI_GIT_IMAGE

# phoenix_find_version: next semver version from conventional commits since the last release tag (rustyphoenixnextversion)
# phoenix_file_replacement: replace a version across pixi.toml, codemeta.json, CMakeLists.txt, Cargo.toml/lock, pyproject.toml (rustyphoenixreplacepackageversion)
# phoenix_release_notes: CHANGELOG.md entries from conventional commits (published as "rustyphoenixnextreleasenotegenerator", see pixi.toml of RustyPhoenixReleaseNoteGenerator)
# git (from PIXI_GIT_IMAGE) is required: all three tools read the git history
# curl (from PIXI_GIT_IMAGE) + jq: used by the notify-release job to call the GitLab API and comment on the MRs/issues included in a release
RUN pixi global install \
      --channel https://prefix.dev/conda-forge \
      --channel https://prefix.dev/phoenix \
      rustyphoenixnextversion \
      rustyphoenixreplacepackageversion \
      rustyphoenixnextreleasenotegenerator \
      jq \
    && pixi clean cache -y
