File tree Expand file tree Collapse file tree 1 file changed +17
-36
lines changed Expand file tree Collapse file tree 1 file changed +17
-36
lines changed Original file line number Diff line number Diff line change @@ -568,6 +568,15 @@ workspace:
568
568
base : /go
569
569
path : src/code.gitea.io/gitea
570
570
571
+ depends_on :
572
+ - testing
573
+
574
+ trigger :
575
+ ref :
576
+ - refs/heads/master
577
+ - " refs/tags/**"
578
+ - " refs/pull/**"
579
+
571
580
steps :
572
581
- name : fetch-tags
573
582
pull : default
@@ -581,56 +590,28 @@ steps:
581
590
582
591
- name : dryrun
583
592
pull : always
584
- image : plugins/docker:18.09
593
+ image : plugins/docker:linux-amd64
585
594
settings :
586
- cache_from : gitea/gitea
587
595
dry_run : true
588
596
repo : gitea/gitea
589
597
when :
590
598
event :
591
599
- pull_request
592
600
593
- - name : release
601
+ - name : publish
594
602
pull : always
595
- image : plugins/docker:18.09
603
+ image : plugins/docker:linux-amd64
596
604
settings :
597
- cache_from : gitea/gitea
605
+ auto_tag : true
598
606
repo : gitea/gitea
599
- tags :
600
- - " ${DRONE_BRANCH##release/v}"
601
- environment :
602
- DOCKER_PASSWORD :
607
+ password :
603
608
from_secret : docker_password
604
- DOCKER_USERNAME :
609
+ username :
605
610
from_secret : docker_username
606
- depends_on :
607
- - dryrun
608
611
when :
609
- branch :
610
- - " release/*"
611
612
event :
612
- - push
613
-
614
- - name : latest
615
- pull : always
616
- image : plugins/docker:18.09
617
- settings :
618
- cache_from : gitea/gitea
619
- default_tags : true
620
- repo : gitea/gitea
621
- environment :
622
- DOCKER_PASSWORD :
623
- from_secret : docker_password
624
- DOCKER_USERNAME :
625
- from_secret : docker_username
626
- depends_on :
627
- - dryrun
628
- when :
629
- branch :
630
- - master
631
- event :
632
- - push
633
- - tag
613
+ exclude :
614
+ - pull_request
634
615
635
616
---
636
617
kind : pipeline
You can’t perform that action at this time.
0 commit comments