kind: pipeline type: docker clone: depth: 1 workspace: path: /src name: Build and Deploy steps: - name: Build site with Hugo image: floryn90/hugo:ext-alpine-ci user: root environment: HUGO_SECURITY_HTTP_URLS: none commands: - git submodule update --init --single-branch --depth=1 - hugo - name: Build and push Docker image image: plugins/docker settings: repo: samsapti/website username: from_secret: DOCKER_USERNAME password: from_secret: DOCKER_PASSWORD tags: - "${DRONE_BUILD_NUMBER}" - latest when: branch: - main event: exclude: - pull_request