File tree 2 files changed +116
-2
lines changed
2 files changed +116
-2
lines changed Original file line number Diff line number Diff line change @@ -560,7 +560,7 @@ steps:
560
560
561
561
---
562
562
kind : pipeline
563
- name : docker
563
+ name : docker-linux-amd64
564
564
565
565
platform :
566
566
os : linux
@@ -596,6 +596,7 @@ steps:
596
596
settings :
597
597
dry_run : true
598
598
repo : gitea/gitea
599
+ tags : linux-amd64
599
600
when :
600
601
event :
601
602
- pull_request
@@ -605,6 +606,7 @@ steps:
605
606
image : plugins/docker:linux-amd64
606
607
settings :
607
608
auto_tag : true
609
+ auto_tag_suffix : linux-amd64
608
610
repo : gitea/gitea
609
611
password :
610
612
from_secret : docker_password
@@ -615,6 +617,97 @@ steps:
615
617
exclude :
616
618
- pull_request
617
619
620
+
621
+
622
+ ---
623
+ kind : pipeline
624
+ name : docker-linux-arm64
625
+
626
+ platform :
627
+ os : linux
628
+ arch : arm64
629
+
630
+ workspace :
631
+ base : /go
632
+ path : src/code.gitea.io/gitea
633
+
634
+ depends_on :
635
+ - testing
636
+
637
+ trigger :
638
+ ref :
639
+ - refs/heads/master
640
+ - " refs/tags/**"
641
+ - " refs/pull/**"
642
+
643
+ steps :
644
+ - name : fetch-tags
645
+ pull : default
646
+ image : docker:git
647
+ commands :
648
+ - git fetch --tags --force
649
+ when :
650
+ event :
651
+ exclude :
652
+ - pull_request
653
+
654
+ - name : dryrun
655
+ pull : always
656
+ image : plugins/docker:linux-arm64
657
+ settings :
658
+ dry_run : true
659
+ repo : gitea/gitea
660
+ tags : linux-arm64
661
+ when :
662
+ event :
663
+ - pull_request
664
+
665
+ - name : publish
666
+ pull : always
667
+ image : plugins/docker:linux-arm64
668
+ settings :
669
+ auto_tag : true
670
+ auto_tag_suffix : linux-arm64
671
+ repo : gitea/gitea
672
+ password :
673
+ from_secret : docker_password
674
+ username :
675
+ from_secret : docker_username
676
+ when :
677
+ event :
678
+ exclude :
679
+ - pull_request
680
+
681
+ ---
682
+ kind : pipeline
683
+ name : docker-manifest
684
+
685
+ platform :
686
+ os : linux
687
+ arch : amd64
688
+
689
+ steps :
690
+ - name : manifest
691
+ pull : always
692
+ image : plugins/manifest
693
+ settings :
694
+ auto_tag : true
695
+ ignore_missing : true
696
+ spec : docker/manifest.tmpl
697
+ password :
698
+ from_secret : docker_password
699
+ username :
700
+ from_secret : docker_username
701
+
702
+ trigger :
703
+ ref :
704
+ - refs/heads/master
705
+ - " refs/tags/**"
706
+
707
+ depends_on :
708
+ - docker-linux-amd64
709
+ - docker-linux-arm64
710
+
618
711
---
619
712
kind : pipeline
620
713
name : notify
@@ -637,7 +730,9 @@ depends_on:
637
730
- translations
638
731
- release-version
639
732
- release-master
640
- - docker
733
+ - docker-linux-amd64
734
+ - docker-linux-arm64
735
+ - docker-manifest
641
736
- docs
642
737
643
738
steps :
Original file line number Diff line number Diff line change
1
+ image: gitea/gitea:{{#if build.tag}}{{trimPrefix "v" build.tag}}{{else}}latest{{/if}}
2
+ {{#if build.tags}}
3
+ tags:
4
+ {{#each build.tags}}
5
+ - {{this}}
6
+ {{/each}}
7
+ {{/if}}
8
+ manifests:
9
+ -
10
+ image: gitea/gitea:{{#if build.tag}}{{trimPrefix "v" build.tag}}-{{/if}}linux-amd64
11
+ platform:
12
+ architecture: amd64
13
+ os: linux
14
+ -
15
+ image: gitea/gitea:{{#if build.tag}}{{trimPrefix "v" build.tag}}-{{/if}}linux-arm64
16
+ platform:
17
+ architecture: arm64
18
+ os: linux
19
+ variant: v8
You can’t perform that action at this time.
0 commit comments