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
|
- name: Cosign login
|
||||||
run: |
|
run: |
|
||||||
echo "${{ secrets.GITHUB_TOKEN }}" | cosign login -u ${{ github.repository_owner }} --password-stdin ghcr.io
|
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
|
- name: Build images and push
|
||||||
run: ./scripts/push-docker-image.sh
|
run: ./scripts/push-docker-image.sh
|
||||||
|
|
|
@ -47,10 +47,6 @@ else
|
||||||
TAG="v$(cat "$(git rev-parse --show-toplevel)/VERSION")-${COMMIT_SHA}"
|
TAG="v$(cat "$(git rev-parse --show-toplevel)/VERSION")-${COMMIT_SHA}"
|
||||||
fi
|
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
|
# Compose full image names for retagging and publishing to remote container registries
|
||||||
OPERATORS=""
|
OPERATORS=""
|
||||||
RELOADERS=""
|
RELOADERS=""
|
||||||
|
@ -61,6 +57,9 @@ for i in ${REGISTRIES}; do
|
||||||
WEBHOOKS="$i/${IMAGE_WEBHOOK}${IMAGE_SUFFIX} ${WEBHOOKS}"
|
WEBHOOKS="$i/${IMAGE_WEBHOOK}${IMAGE_SUFFIX} ${WEBHOOKS}"
|
||||||
done
|
done
|
||||||
|
|
||||||
|
echo "Tag: ${TAG}"
|
||||||
|
echo "Main branch: ${MAIN_BRANCH}"
|
||||||
|
echo "Image suffix: ${IMAGE_SUFFIX}"
|
||||||
for img in ${OPERATORS} ${RELOADERS} ${WEBHOOKS}; do
|
for img in ${OPERATORS} ${RELOADERS} ${WEBHOOKS}; do
|
||||||
echo "Building multi-arch image: $img:$TAG"
|
echo "Building multi-arch image: $img:$TAG"
|
||||||
done
|
done
|
||||||
|
@ -89,8 +88,9 @@ for r in ${OPERATORS} ${RELOADERS} ${WEBHOOKS}; do
|
||||||
MANIFEST="${r}:${TAG}"
|
MANIFEST="${r}:${TAG}"
|
||||||
IMAGES=()
|
IMAGES=()
|
||||||
for arch in $CPU_ARCHS; do
|
for arch in $CPU_ARCHS; do
|
||||||
docker push "${r}:${TAG}-${arch}"
|
echo "Pushing image ${MANIFEST}-${arch}"
|
||||||
IMAGES[${#IMAGES[@]}]="${r}:${TAG}-${arch}"
|
docker push "${MANIFEST}-${arch}"
|
||||||
|
IMAGES[${#IMAGES[@]}]="${MANIFEST}-${arch}"
|
||||||
done
|
done
|
||||||
|
|
||||||
# Create the manifest to join all images under one virtual tag.
|
# Create the manifest to join all images under one virtual tag.
|
||||||
|
|
Loading…
Add table
Reference in a new issue