-
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 1 commit
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]>" | ||
|
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 "(DEVSHIFT_TAG_LEN|QUAY_USERNAME|QUAY_PASSWORD|JENKINS_URL|GIT_BRANCH|GIT_COMMIT|BUILD_NUMBER|ghprbSourceBranch|ghprbActualCommit|BUILD_URL|ghprbPullId)=" \ | ||
| 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 DOCKER_REPO="openshiftio/rhel-ike-prow-plugins" | ||
fi | ||
|
||
# Login first | ||
if [ -n "${DEVSHIFT_USERNAME}" -a -n "${DEVSHIFT_PASSWORD}" ]; then | ||
docker login -u ${DEVSHIFT_USERNAME} -p ${DEVSHIFT_PASSWORD} ${REGISTRY} | ||
if [ -n "${QUAY_USERNAME}" -a -n "${QUAY_PASSWORD}" ]; then | ||
docker login -u ${QUAY_USERNAME} -p ${QUAY_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. I would suggest using 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 like the idea for |
||
else | ||
echo "Could not login, missing credentials for the registry" | ||
fi | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,10 +3,10 @@ apiVersion: v1 | |
parameters: | ||
- name: REGISTRY | ||
required: true | ||
value: docker.io | ||
value: quay.io | ||
- name: DOCKER_REPO | ||
required: true | ||
value: arquillian | ||
value: openshiftio | ||
- name: IMAGE_TAG | ||
required: true | ||
value: latest | ||
|
@@ -42,7 +42,7 @@ objects: | |
terminationGracePeriodSeconds: 180 | ||
containers: | ||
- name: hook | ||
image: ${REGISTRY}/${DOCKER_REPO}/hook:${IMAGE_TAG} | ||
image: ${REGISTRY}/${DOCKER_REPO}-hook:${IMAGE_TAG} | ||
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 think this is correct now. What is the value here for the generated |
||
imagePullPolicy: Always | ||
resources: | ||
requests: | ||
|
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.
Why is it
-
instead of/
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.
Maybe we can also change
DOCKER_REPO
->IMG_REPO
?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.
Because it changed from
prod.registry.devshift.net/osio-prod/ike-prow-plugins/test-keeper
toquay.io/openshiftio/ike-prow-plugins-test-keeper
as per the new repositories.Here's the discussion - https://chat.openshift.io/developers/pl/tqzbcjx5f3nmdg7co9fn5kay5a
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.
Thanks for the link. In such a case I think we should improve the naming here, as
$(REGISTRY)/$(DOCKER_REPO)-hook
is not really correct.In our case this should be:
quay.io/openshiftio/rhel-ike-prow-plugins-work-in-progress
so
REGISTRY = quay.io
IMG_REPO = openshiftio
ike-prow-plugins-
is a prefix of the plugin image name in such case.