kind: pipeline type: docker name: website-testing clone: disable: false steps: - name: testing image: jekyll/jekyll:latest commands: - touch Gemfile.lock - chmod a+w Gemfile.lock - chown -R jekyll:jekyll /drone - gem update --system - gem install bundler - bundle install - bundle exec jekyll build - name: deploying image: appleboy/drone-ssh settings: host: from_secret: homelab_host username: from_secret: homelab_user key: from_secret: homelab_key port: from_secret: homelab_port script: - bash /scripts/ssh_website_pull when: status: - success - name: semantic-release image: cenk1cenk2/drone-semantic-release settings: semantic_release: true git_method: cr git_user_name: from_secret: user_gitea git_user_email: from_secret: email_gitea git_login: from_secret: user_gitea git_password: from_secret: gitea_token update_readme_toc: true - name: discord image: appleboy/drone-discord avatar_url: "https://git.sthope.dev/sthope/drone_test/raw/branch/master/rick.png" environment: DISCORD_WEBHOOK_ID: from_secret: discord_webhook_id DISCORD_WEBHOOK_TOKEN: from_secret: discord_webhook_token settings: message: > {{#success build.status}} ✅ Build #{{build.number}} of `{{repo.name}}` succeeded. 📝 Commit by {{commit.author}} on `{{commit.branch}}`: ``` {{commit.message}} ``` 🌐 <{{ build.link }}> {{else}} ❌ Build #{{build.number}} of `{{repo.name}}` failed. 📝 Commit by {{commit.author}} on `{{commit.branch}}`: ``` {{commit.message}} ``` 🌐 <{{ build.link }}> {{/success}} when: status: - failure # # when: # # event: # # - push # # - tag # # - pull_request # # - deployment # # status: # # - changed # # - failure # # - success