diff --git a/.drone.yml b/.drone.yml index 9cc7337..a0938b0 100644 --- a/.drone.yml +++ b/.drone.yml @@ -1,6 +1,13 @@ workspace: + base: /srv/app path: src +clone: + git: + image: plugins/git:1 + depth: 50 + tags: true + pipeline: build: image: webhippie/hugo:latest @@ -10,7 +17,9 @@ pipeline: - make build docker: - image: plugins/docker + image: plugins/docker:17.05 + pull: true + secrets: [ docker_username, docker_password ] repo: gitea/blog tags: [ '${DRONE_BRANCH##release/v}' ] when: @@ -18,7 +27,9 @@ pipeline: branch: [ release/* ] docker: - image: plugins/docker + image: plugins/docker:17.05 + pull: true + secrets: [ docker_username, docker_password ] repo: gitea/blog tags: [ 'latest' ] when: @@ -26,9 +37,9 @@ pipeline: branch: [ master ] discord: - image: appleboy/drone-discord - webhook_id: ${WEBHOOK_ID} - webhook_token: ${WEBHOOK_TOKEN} + image: appleboy/drone-discord:1.0.0 + pull: true + secrets: [ discord_webhook_id, discord_webhook_token ] when: event: [ push, tag, pull_request ] status: [ changed, failure ]