-
Notifications
You must be signed in to change notification settings - Fork 10
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
chore(#199): migrate from devshift registry to quay.io #218
base: master
Are you sure you want to change the base?
Changes from 4 commits
7598cb2
2d0e4b0
ee6328c
3c4eefa
d29bd18
e2ba1fa
2dabe34
7d0fa3e
70fd76d
50b2085
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
FROM prod.registry.devshift.net/osio-prod/base/pcp-tools:latest | ||
FROM quay.io/openshiftio/rhel-base-pcp-tools:latest | ||
|
||
LABEL maintainer="Devtools <[email protected]>" | ||
LABEL maintainer="Devtools-test <[email protected]>" | ||
|
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -11,7 +11,7 @@ set -e | |
function load_jenkins_vars() { | ||
if [ -e "jenkins-env" ]; then | ||
cat jenkins-env \ | ||
| grep -E "(DEVSHIFT_TAG_LEN|DEVSHIFT_USERNAME|DEVSHIFT_PASSWORD|JENKINS_URL|GIT_BRANCH|GIT_COMMIT|BUILD_NUMBER|ghprbSourceBranch|ghprbActualCommit|BUILD_URL|ghprbPullId)=" \ | ||
| grep -E "(IMG_REPO_TAG_LEN|IMG_REPO_USERNAME|IMG_REPO_PASSWORD|JENKINS_URL|GIT_BRANCH|GIT_COMMIT|BUILD_NUMBER|ghprbSourceBranch|ghprbActualCommit|BUILD_URL|ghprbPullId)=" \ | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I don't know from where There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. That is correct, Also, I recommend you to no longer use such a mechanism to load the env, but rather use this: function load_jenkins_vars() {
if [ -e "jenkins-env.json" ]; then
eval "$(./env-toolkit load -f jenkins-env.json \
DEVSHIFT_TAG_LEN \
QUAY_USERNAME \
QUAY_PASSWORD \
JENKINS_URL \
GIT_BRANCH \
GIT_COMMIT \
BUILD_NUMBER \
ghprbSourceBranch \
ghprbActualCommit \
BUILD_URL \
ghprbPullId)"
fi
} It's a much safer approach as it's resilient to env vars with spaces, newlines and special chars. |
||
| sed 's/^/export /g' \ | ||
> ~/.jenkins-env | ||
source ~/.jenkins-env | ||
|
@@ -49,17 +49,17 @@ function cleanup_env { | |
} | ||
|
||
function deploy() { | ||
export REGISTRY="push.registry.devshift.net" | ||
export REGISTRY="quay.io" | ||
export PLUGINS='work-in-progress test-keeper pr-sanitizer' | ||
|
||
if [ "${TARGET}" = "rhel" ]; then | ||
export DEPLOY_DOCKERFILE='Dockerfile.deploy.rhel' | ||
export DOCKER_REPO="osio-prod/ike-prow-plugins" | ||
export IMG_REPO="openshiftio/rhel-" | ||
fi | ||
|
||
# Login first | ||
if [ -n "${DEVSHIFT_USERNAME}" -a -n "${DEVSHIFT_PASSWORD}" ]; then | ||
docker login -u ${DEVSHIFT_USERNAME} -p ${DEVSHIFT_PASSWORD} ${REGISTRY} | ||
if [ -n "${IMG_REPO_USERNAME}" -a -n "${IMG_REPO_PASSWORD}" ]; then | ||
docker login -u ${IMG_REPO_USERNAME} -p ${IMG_REPO_PASSWORD} ${REGISTRY} | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. please replace with |
||
else | ||
echo "Could not login, missing credentials for the registry" | ||
fi | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Shouldn't
$(REGISTRY)/$(IMG_REPO)-hook
be$(REGISTRY)/$(IMG_REPO)/$(OC_PROJECT_NAME)-hook
now?There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think so too.