Comments (2)
openshift.withCluster() {
def localToken = readFile('/var/run/secrets/kubernetes.io/serviceaccount/token').trim()
def secretData = openshift.selector('secret/prod-credentials').object().data
def encodedRegistry = secretData.registry
def encodedToken = secretData.token
def registry = sh(script:"set +x; echo ${encodedRegistry} | base64 --decode", returnStdout: true)
def token = sh(script:"set +x; echo ${encodedToken} | base64 --decode", returnStdout: true)
openshift.withProject("${STAGE2}") {
def imageRegistry = openshift.selector( 'is', "${APP_NAME}").object().status.dockerImageRepository
echo "Promoting ${imageRegistry} -> ${registry}/${STAGE3}/${APP_NAME}"
sh """
set +x
skopeo copy --remove-signatures \
--src-creds openshift:${localToken} --src-cert-dir=/run/secrets/kubernetes.io/serviceaccount/ \
--dest-creds openshift:${token} --dest-tls-verify=false \
docker://${imageRegistry} docker://${registry}/${STAGE3}/${APP_NAME}
"""
}
}
from pipeline-library.
Fixed by #16
from pipeline-library.
Related Issues (20)
- Migrate from travis to prow for CI HOT 7
- Need a standard method for doing an `oc process | oc apply` via the openshift client plugin HOT 2
- Need a standard method for executing a binary build via the client plugin HOT 2
- Add tag v1.6 HOT 1
- Strategy to move away from prow HOT 2
- Need a method for doing an `oc tag` based promotion HOT 2
- Need a Verify Deployment method HOT 2
- Need a standard `wait for image signature` method HOT 6
- Need to document a testing strategy for this repo. HOT 3
- Need pipeline library user documentation HOT 4
- Re-factor applier.groovy to get credentials from Jenkins not OCP HOT 2
- fix example projectName HOT 1
- why is it called registryUrl and not clusterUrl? HOT 2
- error calling binaryBuild HOT 4
- Verify Deployment Error HOT 4
- Add filterTags to applier shared library HOT 1
- verify deployment skip ssl HOT 2
- Create release for v1.3
- Intermittent infinite loop in verifyDeployment HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from pipeline-library.