Skip to content

Commit

Permalink
Merge pull request #40 from RedHatInsights/push_images_to_public_quay
Browse files Browse the repository at this point in the history
Push to public repository after security checks
  • Loading branch information
abellotti authored Nov 11, 2024
2 parents a94153d + 6b0e0e3 commit 6dca8d9
Showing 1 changed file with 8 additions and 5 deletions.
13 changes: 8 additions & 5 deletions .tekton/rhproxy-engine-container-release-push.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -534,30 +534,33 @@ spec:
#!/usr/bin/env bash
#
# Script to push the released x.y.z and x.y tagged images to the public repo
SOURCE_REPO="$(tasks.build-image-index.results.IMAGE_URL)"
SOURCE_IMAGE="$(tasks.build-image-index.results.IMAGE_URL)"
TARGET_REPO="quay.io/insights_proxy/rhproxy-engine"
TARGET_RELEASE="$(tasks.init-env.results.target_release)"
MINOR_RELEASE="$(tasks.init-env.results.minor_release)"
echo "Pushing images to the public facing repository ..."
echo "Source Repo: ${SOURCE_REPO}"
echo "Source Image: ${SOURCE_IMAGE}"
echo "Target Repo: ${TARGET_REPO}"
# Copy the Target x.y.z release
skopeo copy --dest-username "${DEST_QUAY_USERNAME}" --dest-password "${DEST_QUAY_PASSWORD}" \
"${SOURCE_REPO}:${TARGET_RELEASE}" \
"${SOURCE_IMAGE}" \
"${TARGET_REPO}:${TARGET_RELEASE}"
echo "Pushed Image: ${TARGET_REPO}:${TARGET_RELEASE}"
# Copy the Minor x.y release
skopeo copy --dest-username "${DEST_QUAY_USERNAME}" --dest-password "${DEST_QUAY_PASSWORD}" \
"${SOURCE_REPO}:${MINOR_RELEASE}" \
"${SOURCE_IMAGE}" \
"${TARGET_REPO}:${MINOR_RELEASE}"
echo "Pushed Image: ${TARGET_REPO}:${MINOR_RELEASE}"
runAfter:
- push-dockerfile
- apply-tags
- clair-scan
- sast-snyk-check
- clamav-scan
- rpms-signature-scan
workspaces:
- name: git-auth
optional: true
Expand Down

0 comments on commit 6dca8d9

Please sign in to comment.