kind: pipeline type: docker name: build trigger: branch: - build 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 settings: dockerfile: Dockerfile context: . registry: hub.codefirst.iut.uca.fr repo: hub.codefirst.iut.uca.fr/alexandre.agostinho/codefirst-docdeployer username: from_secret: SECRET_REGISTRY_USERNAME password: from_secret: SECRET_REGISTRY_PASSWORD