Merge pull request 'chore: remove legacy GitLab CI and Jenkins files' (#60) from ci/remove-legacy-ci into main
Main Release / hadolint (push) Successful in 22s
Main Release / test (push) Successful in 42s
Renovate / renovate (push) Successful in 1m55s
Main Release / build (push) Successful in 6m22s
Main Release / tag (push) Successful in 34s
Tag Release / hadolint (push) Successful in 17s
Tag Release / test (push) Successful in 1m58s
Tag Release / build-push (push) Successful in 6m16s
Main Release / hadolint (push) Successful in 22s
Main Release / test (push) Successful in 42s
Renovate / renovate (push) Successful in 1m55s
Main Release / build (push) Successful in 6m22s
Main Release / tag (push) Successful in 34s
Tag Release / hadolint (push) Successful in 17s
Tag Release / test (push) Successful in 1m58s
Tag Release / build-push (push) Successful in 6m16s
Reviewed-on: #60
This commit was merged in pull request #60.
This commit is contained in:
Vendored
-38
@@ -1,38 +0,0 @@
|
|||||||
pipeline {
|
|
||||||
environment {
|
|
||||||
registry = 'https://registry.hub.docker.com'
|
|
||||||
registryCredential = 'dockerhub_jcabillot'
|
|
||||||
dockerImage = 'jcabillot/opencode'
|
|
||||||
}
|
|
||||||
|
|
||||||
agent any
|
|
||||||
|
|
||||||
triggers {
|
|
||||||
cron('@midnight')
|
|
||||||
}
|
|
||||||
|
|
||||||
stages {
|
|
||||||
stage('Clone repository') {
|
|
||||||
steps{
|
|
||||||
checkout scm
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
stage('Build image') {
|
|
||||||
steps{
|
|
||||||
sh 'docker build --force-rm=true --no-cache=true --pull -t ${dockerImage} .'
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
stage('Deploy Image') {
|
|
||||||
steps{
|
|
||||||
script {
|
|
||||||
withCredentials([usernamePassword(credentialsId: 'dockerhub_jcabillot', usernameVariable: 'DOCKER_USER', passwordVariable: 'DOCKER_PASS')]) {
|
|
||||||
sh 'docker login --username ${DOCKER_USER} --password ${DOCKER_PASS}'
|
|
||||||
sh 'docker push ${dockerImage}'
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
Reference in New Issue
Block a user