CI: Use Jenkins only
Some checks failed
gitea/ansible-roles/pipeline/head There was a failure building this commit
Some checks failed
gitea/ansible-roles/pipeline/head There was a failure building this commit
This commit is contained in:
parent
6c33e11d5f
commit
9aa043d1ab
|
@ -21,11 +21,9 @@ pipeline {
|
||||||
def major = versions[0]
|
def major = versions[0]
|
||||||
def minor = versions[0] + '.' + versions[1]
|
def minor = versions[0] + '.' + versions[1]
|
||||||
def patch = version.trim()
|
def patch = version.trim()
|
||||||
/* No crendentials yet
|
|
||||||
im.push(major)
|
im.push(major)
|
||||||
im.push(minor)
|
im.push(minor)
|
||||||
im.push(patch)
|
im.push(patch)
|
||||||
*/
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -40,9 +38,7 @@ pipeline {
|
||||||
im.inside {
|
im.inside {
|
||||||
sh 'echo Test needed'
|
sh 'echo Test needed'
|
||||||
}
|
}
|
||||||
/* No crendentials yet
|
|
||||||
im.push('latest')
|
im.push('latest')
|
||||||
*/
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
36
.drone.yml
36
.drone.yml
|
@ -1,36 +0,0 @@
|
||||||
kind: pipeline
|
|
||||||
name: default
|
|
||||||
|
|
||||||
steps:
|
|
||||||
- name: build tagged docker image
|
|
||||||
image: plugins/docker
|
|
||||||
settings:
|
|
||||||
username:
|
|
||||||
from_secret: docker_username
|
|
||||||
password:
|
|
||||||
from_secret: docker_password
|
|
||||||
dockerfile: Dockerfile
|
|
||||||
repo: evolix/ansible-roles
|
|
||||||
auto_tag: true
|
|
||||||
environment:
|
|
||||||
ROLES_VERSION: $DRONE_COMMIT_SHA
|
|
||||||
when:
|
|
||||||
event:
|
|
||||||
- tag
|
|
||||||
|
|
||||||
- name: build latest docker image
|
|
||||||
image: plugins/docker
|
|
||||||
settings:
|
|
||||||
username:
|
|
||||||
from_secret: docker_username
|
|
||||||
password:
|
|
||||||
from_secret: docker_password
|
|
||||||
dockerfile: Dockerfile
|
|
||||||
repo: evolix/ansible-roles
|
|
||||||
tags: latest
|
|
||||||
environment:
|
|
||||||
ROLES_VERSION: $DRONE_COMMIT_SHA
|
|
||||||
when:
|
|
||||||
branch:
|
|
||||||
- unstable
|
|
||||||
|
|
Loading…
Reference in a new issue