---kind: pipelinetype: dockername: developmentplatform:os: linuxarch: amd64steps:- name: restore-cacheimage: drillster/drone-volume-cachevolumes:- name: cachepath: /cachesettings:restore: truemount:- ./target- name: testimage: joseluisq/rust-linux-darwin-builder:1.43.1commands:- make test- name: rebuild-cacheimage: drillster/drone-volume-cachevolumes:- name: cachepath: /cachesettings:rebuild: truemount:- ./targetvolumes:- name: cachehost:path: /tmp/cachetrigger:event:- push- pull_requestbranch:- master- develop- feature/*- bugfix/*- hotfix/*---kind: pipelinetype: dockername: productionplatform:os: linuxarch: amd64steps:- name: testimage: joseluisq/rust-linux-darwin-builder:1.43.1commands:- make testwhen:event:- tag- name: releaseimage: joseluisq/rust-linux-darwin-builder:1.43.1commands:- make prod.releasewhen:ref:- refs/tags/v*exclude:- refs/tags/**rc**- refs/tags/**beta**- refs/tags/latest- name: publish-scratchimage: plugins/dockersettings:registry: registry.joseluisq.netrepo: registry.joseluisq.net/static-web-serverdockerfile: ./docker/scratch/Dockerfileusername:from_secret: registry_usernamepassword:from_secret: registry_passwordauto_tag: truebuild_args:- DOCKER_IMAGE_VERSION=${DRONE_TAG}tags:- latestwhen:ref:- refs/tags/v*exclude:- refs/tags/**rc**- refs/tags/**beta**- refs/tags/latest- name: publish-alpineimage: plugins/dockersettings:registry: registry.joseluisq.netrepo: registry.joseluisq.net/static-web-serverdockerfile: ./docker/alpine/Dockerfileusername:from_secret: registry_usernamepassword:from_secret: registry_passwordauto_tag: trueauto_tag_suffix: alpinebuild_args:- DOCKER_IMAGE_VERSION=${DRONE_TAG}-alpinewhen:ref:- refs/tags/v*exclude:- refs/tags/**rc**- refs/tags/**beta**- refs/tags/latest- name: gitea-releaseimage: plugins/gitea-releasesettings:api_key:from_secret: gitea_tokenbase_url: https://git.joseluisq.net/files:- ./bin/*.tar.gz- ./bin/*-SHA256SUMprerelease: truewhen:ref:- refs/tags/v*exclude:- refs/tags/**rc**- refs/tags/**beta**- refs/tags/latest- name: publish-public-scratchimage: plugins/dockersettings:repo: joseluisq/static-web-serverdockerfile: ./docker/scratch/Dockerfileusername:from_secret: dockerhub_usernamepassword:from_secret: dockerhub_passwordauto_tag: truetags:- latestwhen:ref:- refs/tags/v*exclude:- refs/tags/**rc**- refs/tags/**beta**- refs/tags/latest- name: publish-public-alpineimage: plugins/dockersettings:repo: joseluisq/static-web-serverdockerfile: ./docker/alpine/Dockerfileusername:from_secret: dockerhub_usernamepassword:from_secret: dockerhub_passwordauto_tag: trueauto_tag_suffix: alpinewhen:ref:- refs/tags/v*exclude:- refs/tags/**rc**- refs/tags/**beta**- refs/tags/latesttrigger:event:- tag---kind: pipelinetype: dockername: stagingplatform:os: linuxarch: amd64steps:- name: testimage: joseluisq/rust-linux-darwin-builder:1.43.1commands:- make test- name: releaseimage: joseluisq/rust-linux-darwin-builder:1.43.1commands:- make prod.release- name: publish-scratchimage: plugins/dockersettings:registry: registry.joseluisq.netrepo: registry.joseluisq.net/static-web-serverdockerfile: ./docker/scratch/Dockerfileusername:from_secret: registry_usernamepassword:from_secret: registry_passwordtags:- v1-dev- name: publish-alpineimage: plugins/dockersettings:registry: registry.joseluisq.netrepo: registry.joseluisq.net/static-web-serverdockerfile: ./docker/alpine/Dockerfileusername:from_secret: registry_usernamepassword:from_secret: registry_passwordtags:- v1-dev-alpinetrigger:target:- staging---kind: pipelinetype: dockername: notificationplatform:os: linuxarch: amd64steps:- name: notifyimage: plugins/slacksettings:webhook:from_secret: slack_webhookchannel: ci-cddepends_on:- development- staging- productiontrigger:status:- success- failure