Merge branch 'main' into guhidalgo/securitypatching

This commit is contained in:
Gustavo Hidalgo 2024-04-15 14:17:32 -04:00 коммит произвёл GitHub
Родитель b56819d3bd 3bd6c08dab
Коммит 2ee54a0d46
Не найден ключ, соответствующий данной подписи
Идентификатор ключа GPG: B5690EEEBB952194
2 изменённых файлов: 5 добавлений и 12 удалений

4
.github/workflows/cicd.yml поставляемый
Просмотреть файл

@ -33,14 +33,16 @@ jobs:
case "${GITHUB_REF}" in
*tags*)
echo "tag=${GITHUB_REF/refs\/tags\//}" >> $GITHUB_OUTPUT
echo "ACR=pccomponents" >> $GITHUB_OUTPUT
;;
*)
echo "tag=latest" >> $GITHUB_OUTPUT
echo "ACR=pccomponentstest" >> $GITHUB_OUTPUT
;;
esac
- name: Publish images
run: ./scripts/cipublish --acr pccomponentstest --tag ${{steps.get_image_tag.outputs.tag}}
run: ./scripts/cipublish --acr ${{steps.get_image_tag.outputs.ACR}} --tag ${{steps.get_image_tag.outputs.tag}}
outputs:
image_tag: ${{ steps.get_image_tag.outputs.tag }}

Просмотреть файл

@ -120,17 +120,8 @@ if [ "${BASH_SOURCE[0]}" = "${0}" ]; then
install_oras
fi
# only _tagged_ releases will be synced from pcccr to MAR
case $IMAGE_TAG in
*latest*)
image_prefix="private"
;;
*)
image_prefix="public"
;;
esac
# Publish images
publish_image "pc-apis-stac" "$image_prefix/planetary-computer-apis/stac"
publish_image "pc-apis-tiler" "$image_prefix/planetary-computer-apis/tiler"
publish_image "pc-apis-stac" "planetary-computer-apis/stac"
publish_image "pc-apis-tiler" "planetary-computer-apis/tiler"
fi