kind: pipeline type: docker name: build trigger: event: - push steps: - name: key-setup image: ubuntu:latest environment: NGINX_KEY: from_secret: NGINX_KEY commands: - echo "$NGINX_KEY" > id_rsa - name: docker-build image: plugins/docker 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 when: branch: - master