Browse Source

Add public docker image push

master
Daniel Gyulai 4 years ago
parent
commit
e167578828
  1. 7
      Jenkinsfile
  2. 1
      ci/ci_values.yaml
  3. 2
      helm/covidok/values.yaml

7
Jenkinsfile

@ -76,6 +76,13 @@ spec:
stage('Push tested image'){
sh 'docker tag docker.local/bme/covidok:dev docker.local/bme/covidok:latest'
sh 'docker push docker.local/bme/covidok:latest'
withCredentials([string(credentialsId: 'docker-dgyulaid-token', variable: 'DOCKER_PASS')]) {
sh '''
echo "$DOCKER_PASS" | docker login --username dgyulaid --password-stdin
docker tag docker.local/bme/covidok:latest dgyulaid/covidok:latest
docker push dgyulaid/covidok:latest
'''
}
}
}
container('helm'){

1
ci/ci_values.yaml

@ -4,4 +4,5 @@
images:
covidok:
name: docker.local/bme/covidok
tag: dev

2
helm/covidok/values.yaml

@ -4,7 +4,7 @@
images:
covidok:
name: docker.local/bme/covidok
name: dgyulaid/covidok
tag: latest
mysql:
name: mysql

Loading…
Cancel
Save