Ajouter '.drone.yml'

master
Maxence LANONE 2 years ago
parent 75f08a8847
commit 92fff0379d

@ -0,0 +1,21 @@
# docker image build
- name: docker-build-and-push
image: plugins/docker
settings:
dockerfile: Sources/Dockerfile
context: Sources/
registry: hub.codefirst.iut.uca.fr
repo: hub.codefirst.iut.uca.fr/my.login/myRepository
username:
from_secret: SECRET_REGISTRY_USERNAME
password:
from_secret: SECRET_REGISTRY_PASSWORD
# container deployment
- name: deploy-container
image: hub.codefirst.iut.uca.fr/thomas.bellembois/codefirst-dockerproxy-clientdrone:latest
environment:
IMAGENAME: hub.codefirst.iut.uca.fr/my.login/my_repository:latest
CONTAINERNAME: my_container_name
COMMAND: create
OVERWRITE: true
Loading…
Cancel
Save