Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add quay support #2783

Merged
merged 9 commits into from
Feb 10, 2021
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Feedbacks
Signed-off-by: Ashmita Bohara <ashmita.bohara152@gmail.com>
  • Loading branch information
Ashmita152 committed Feb 9, 2021
commit fe21cbb2550000eea5764607542ea4a93b4b03df
10 changes: 2 additions & 8 deletions scripts/travis/upload-to-registry.sh
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ try_login() {
local registry=$1
local user=$2
local token=$3
local marker=.${registry}.login
local marker=$4

if [ ! -f ${marker} ]; then
Ashmita152 marked this conversation as resolved.
Show resolved Hide resolved
printenv ${token} | docker login ${registry} --username ${user} --password-stdin
Expand All @@ -69,9 +69,8 @@ upload_images() {
local token=$4
local marker=.${registry}.login

try_login ${registry} ${user} ${token}
try_login ${registry} ${user} ${token} ${marker}

# upload regular images
if [ ! -f ${marker} ]; then
Ashmita152 marked this conversation as resolved.
Show resolved Hide resolved
echo "skipping upload to ${registry}, not logged in!"
else
Expand All @@ -83,12 +82,7 @@ upload_images() {
docker push ${registry}/${image}
;;
esac
fi

# upload snapshot images
if [ ! -f ${marker} ]; then
echo "skipping upload to ${registry}, not logged in!"
else
local snapshot_image="${image}-snapshot:${GITHUB_SHA}"
echo "pushing snapshot image ${snapshot_image}"
docker tag ${image} ${registry}/${snapshot_image}
Expand Down