build stable with stable tag

This commit is contained in:
Amelia Yukii 2024-02-01 14:00:56 +00:00
parent 4c8116859c
commit acf3e3460f
1 changed files with 20 additions and 9 deletions

View File

@ -90,14 +90,25 @@ mergeManifests:
entrypoint: [""]
script:
- >-
manifest-tool
--username=${CI_REGISTRY_USER}
--password=${CI_REGISTRY_PASSWORD}
push from-args
--platforms linux/amd64,linux/arm64
--tags ${REGISTRY_PUSH_VERSION}
--template ${CI_REGISTRY_IMAGE}:ARCH
--target ${CI_REGISTRY_IMAGE}:${REGISTRY_PUSH_TAG}
if test "$REGISTRY_PUSH_TAG" == "stable"; then
manifest-tool
--username=${CI_REGISTRY_USER}
--password=${CI_REGISTRY_PASSWORD}
push from-args
--platforms linux/amd64,linux/arm64
--tags ${REGISTRY_PUSH_VERSION},stable
--template ${CI_REGISTRY_IMAGE}:ARCH
--target ${CI_REGISTRY_IMAGE}:${REGISTRY_PUSH_TAG}
else
manifest-tool
--username=${CI_REGISTRY_USER}
--password=${CI_REGISTRY_PASSWORD}
push from-args
--platforms linux/amd64,linux/arm64
--tags ${REGISTRY_PUSH_VERSION}
--template ${CI_REGISTRY_IMAGE}:ARCH
--target ${CI_REGISTRY_IMAGE}:${REGISTRY_PUSH_TAG}
fi
only:
- stable
- develop