# Variables tag: &tag latest repo: &repo phoenix.ipv64.de/kirbylink/warp4j branch: &branch master dry_run: &dry_run false step_name: &step_name warp4j pipeline_name: &pipeline_name warp4j build and push notification_name: ¬ification_name Send Notification # Basic build options x-step: &default_build_option image: plugins/docker settings: dry_run: *dry_run mirror: https://registry.phoenix.ipv64.de repo: *repo tags: - *tag x-step: &default_notification_option image: phoenix.ipv64.de/kirbylink/drone-gotify:latest settings: gotifytoken: from_secret: plugin_gotifytoken gotifyendpoint: from_secret: plugin_gotifyendpoint gotifytitle: *step_name gotifypriority: 5 kind: pipeline type: docker platform: os: linux arch: arm64 name: *pipeline_name steps: - name: *step_name <<: *default_build_option settings: dockerfile: Dockerfile - name: *notification_name <<: *default_notification_option settings: message: > {{#success build.status}} Build of docker image on build {{build.number}} succeeded on {{repo.name}}. Build link: {{build.link}} {{else}} WARNING. Build of docker image on build {{build.number}} failed on {{repo.name}}. Build link: {{build.link}} {{/success}} when: status: [ success, failure ] trigger: branch: - *branch event: - push - custom --- # Variables tag: &tag testing repo: &repo phoenix.ipv64.de/kirbylink/warp4j branch: &branch develop dry_run: &dry_run false step_name: &step_name warp4j pipeline_name: &pipeline_name warp4j build and push (testing) notification_name: ¬ification_name Send Notification # Basic build options x-step: &default_build_option image: plugins/docker settings: dry_run: *dry_run mirror: https://registry.phoenix.ipv64.de repo: *repo tags: - *tag x-step: &default_notification_option image: phoenix.ipv64.de/kirbylink/drone-gotify:latest settings: gotifytoken: from_secret: plugin_gotifytoken gotifyendpoint: from_secret: plugin_gotifyendpoint gotifytitle: *step_name gotifypriority: 5 kind: pipeline type: docker platform: os: linux arch: arm64 name: *pipeline_name steps: - name: *step_name <<: *default_build_option settings: dockerfile: Dockerfile - name: *notification_name <<: *default_notification_option settings: message: > {{#success build.status}} Build of test docker image on build {{build.number}} succeeded on {{repo.name}}. Build link: {{build.link}} {{else}} WARNING. Build of docker image on build {{build.number}} failed on {{repo.name}}. Build link: {{build.link}} {{/success}} when: status: [ success, failure ] trigger: branch: - *branch event: - push - custom --- # Variables tag: &tag testing repo: &repo phoenix.ipv64.de/kirbylink/warp4j branch: &exclude_branch master dry_run: &dry_run true step_name: &step_name warp4j pipeline_name: &pipeline_name warp4j build only (testing) notification_name: ¬ification_name Send Notification # Basic build options x-step: &default_build_option image: plugins/docker settings: dry_run: *dry_run mirror: https://registry.phoenix.ipv64.de repo: *repo tags: - *tag x-step: &default_notification_option image: phoenix.ipv64.de/kirbylink/drone-gotify:latest settings: gotifytoken: from_secret: plugin_gotifytoken gotifyendpoint: from_secret: plugin_gotifyendpoint gotifytitle: *step_name gotifypriority: 5 kind: pipeline type: docker platform: os: linux arch: arm64 name: *pipeline_name steps: - name: *step_name <<: *default_build_option settings: dockerfile: Dockerfile - name: warp4j x64 <<: *default_build_option settings: dockerfile: Dockerfile_x64_86 - name: *notification_name <<: *default_notification_option settings: message: > {{#success build.status}} Test build of docker image on build {{build.number}} succeeded on {{repo.name}}. Build link: {{build.link}} {{else}} WARNING. Test build of docker image on build {{build.number}} failed on {{repo.name}}. Build link: {{build.link}} {{/success}} when: status: [ success, failure ] trigger: branch: exclude: - *exclude_branch event: - pull_request