You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
codefirst-docdeployer/.drone.yml

35 lines
683 B

kind: pipeline
type: docker
name: build
trigger:
event:
- push
steps:
- name: key-setup
image: ubuntu:latest
volumes:
- name: key
path: key
commands:
- mkdir key
- echo "$NGINX_KEY" > key/id_rsa
- name: docker-build
image: plugins/docker
volumes:
- name: key
path: key
depends_on:
- key-setup
settings:
dockerfile: Dockerfile
context: .
registry: hub.codefirst.iut.uca.fr
repo: hub.codefirst.iut.uca.fr/maxime.batista/codefirst-docdeployer
username:
from_secret: SECRET_REGISTRY_USERNAME
password:
from_secret: SECRET_REGISTRY_PASSWORD