Compare commits
3 Commits
740da15967
...
993b9f1d7c
| Author | SHA1 | Date | |
|---|---|---|---|
| 993b9f1d7c | |||
| 7802854b32 | |||
| 6315f1eee0 |
10
Jenkinsfile
vendored
10
Jenkinsfile
vendored
@@ -3,10 +3,10 @@ pipeline {
|
||||
|
||||
environment {
|
||||
// Configure these in Jenkins or as pipeline parameters
|
||||
DOCKER_REGISTRY = 'docker.io'
|
||||
DOCKER_IMAGE = 'myorg/myapp' // e.g., username/repo for Docker Hub
|
||||
DEPLOY_HOST = 'deploy-server.example.com'
|
||||
DEPLOY_USER = 'deploy'
|
||||
DOCKER_REGISTRY = 'https://git.wrigglyt.xyz/'
|
||||
DOCKER_IMAGE = 'ryanv/myapp' // e.g., username/repo for Docker Hub
|
||||
DEPLOY_HOST = '10.0.11.3'
|
||||
DEPLOY_USER = 'ryanv'
|
||||
DEPLOY_PATH = '/opt/myapp'
|
||||
GIT_REPO_URL = 'https://github.com/myorg/jenkins-docker-deploy-example.git'
|
||||
}
|
||||
@@ -33,7 +33,7 @@ pipeline {
|
||||
stage('Push to Registry') {
|
||||
steps {
|
||||
withCredentials([usernamePassword(
|
||||
credentialsId: 'docker-registry-credentials',
|
||||
credentialsId: 'gitea_credentials',
|
||||
usernameVariable: 'DOCKER_USER',
|
||||
passwordVariable: 'DOCKER_PASS'
|
||||
)]) {
|
||||
|
||||
Reference in New Issue
Block a user