S2I plugin can be used to build and push images to Docker registry using S2I
Source-to-Image (S2I) is a toolkit and workflow for building reproducible container images from source code. S2I produces ready-to-run images by injecting source code into a container image and letting the container prepare that source code for execution. By creating self-assembling builder images, you can version and control your build environments exactly like you use container images to version your runtime environments.
- name: Test plugin
image: getais/drone-plugin-s2i
privileged: true
settings:
builder: examplebuilderimage
target: examplerepo/exampleimage
tags:
- latest
push: true
registry: registry.example.domain
username: kevinbacon
password: pa55word
- name: Test plugin
image: getais/drone-plugin-s2i
privileged: true
settings:
builder: examplebuilderimage
target: examplerepo/exampleimage
context: somedir
tags:
- latest
push: true
registry: registry.example.domain
username: kevinbacon
password: pa55word
- name: Test plugin
image: getais/drone-plugin-s2i
privileged: true
settings:
builder: examplebuilderimage
target: examplerepo/exampleimage
tags:
- latest
- othertag
push: true
registry: registry.example.domain
username: kevinbacon
password: pa55word
- name: Test plugin
image: getais/drone-plugin-s2i
privileged: true
settings:
builder: examplebuilderimage
target: examplerepo/exampleimage
registry: registry.example.domain
tags:
- latest
push: true
username:
from_secret: INTERNAL_REGISTRY_USER
password:
from_secret: INTERNAL_REGISTRY_TOKEN
- name: Test plugin
image: getais/drone-plugin-s2i
privileged: true
settings:
builder: examplebuilderimage
target: examplerepo/exampleimage
tags:
- latest
steps:
- name: Test plugin
image: getais/drone-plugin-s2i
privileged: true
settings:
builder: examplebuilderimage
target: examplerepo/exampleimage
tags:
- latest
volumes:
- name: docker-socket
path: /var/run/docker.sock
volumes:
- name: docker-socket
host:
path: /var/run/docker.sock
the Docker image to be used in building the final image
the name of the final Docker image
context directory to use in build
tag list built image will be tagged
Docker registry
Docker registry username
Docker registry password