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