mirror of
https://github.com/prometheus-operator/prometheus-operator.git
synced 2025-04-16 09:16:38 +00:00
.github/workflows/publish.yaml: fix typo (#5395)
The Quay username is available from the GitHub secrets! Signed-off-by: Simon Pasquier <spasquie@redhat.com>
This commit is contained in:
parent
1e0a95e9b7
commit
105ae14048
2 changed files with 7 additions and 7 deletions
2
.github/workflows/publish.yaml
vendored
2
.github/workflows/publish.yaml
vendored
|
@ -46,6 +46,6 @@ jobs:
|
|||
- name: Cosign login
|
||||
run: |
|
||||
echo "${{ secrets.GITHUB_TOKEN }}" | cosign login -u ${{ github.repository_owner }} --password-stdin ghcr.io
|
||||
echo "${{ secrets.quay_password }}" | cosign login -u ${{ github.quay_username }} --password-stdin quay.io
|
||||
echo "${{ secrets.quay_password }}" | cosign login -u ${{ secrets.quay_username }} --password-stdin quay.io
|
||||
- name: Build images and push
|
||||
run: ./scripts/push-docker-image.sh
|
||||
|
|
|
@ -47,10 +47,6 @@ else
|
|||
TAG="v$(cat "$(git rev-parse --show-toplevel)/VERSION")-${COMMIT_SHA}"
|
||||
fi
|
||||
|
||||
echo ">> Tag: ${TAG}"
|
||||
echo ">> Main branch: ${MAIN_BRANCH}"
|
||||
echo ">> Image suffix: ${IMAGE_SUFFIX}"
|
||||
|
||||
# Compose full image names for retagging and publishing to remote container registries
|
||||
OPERATORS=""
|
||||
RELOADERS=""
|
||||
|
@ -61,6 +57,9 @@ for i in ${REGISTRIES}; do
|
|||
WEBHOOKS="$i/${IMAGE_WEBHOOK}${IMAGE_SUFFIX} ${WEBHOOKS}"
|
||||
done
|
||||
|
||||
echo "Tag: ${TAG}"
|
||||
echo "Main branch: ${MAIN_BRANCH}"
|
||||
echo "Image suffix: ${IMAGE_SUFFIX}"
|
||||
for img in ${OPERATORS} ${RELOADERS} ${WEBHOOKS}; do
|
||||
echo "Building multi-arch image: $img:$TAG"
|
||||
done
|
||||
|
@ -89,8 +88,9 @@ for r in ${OPERATORS} ${RELOADERS} ${WEBHOOKS}; do
|
|||
MANIFEST="${r}:${TAG}"
|
||||
IMAGES=()
|
||||
for arch in $CPU_ARCHS; do
|
||||
docker push "${r}:${TAG}-${arch}"
|
||||
IMAGES[${#IMAGES[@]}]="${r}:${TAG}-${arch}"
|
||||
echo "Pushing image ${MANIFEST}-${arch}"
|
||||
docker push "${MANIFEST}-${arch}"
|
||||
IMAGES[${#IMAGES[@]}]="${MANIFEST}-${arch}"
|
||||
done
|
||||
|
||||
# Create the manifest to join all images under one virtual tag.
|
||||
|
|
Loading…
Add table
Reference in a new issue