|
63 | 63 | - go build -o release/windows/amd64/drone-ecr.exe ./cmd/drone-ecr |
64 | 64 | - go build -o release/windows/amd64/drone-gcr.exe ./cmd/drone-gcr |
65 | 65 | - go build -o release/windows/amd64/drone-acr.exe ./cmd/drone-acr |
| 66 | + - go build -o release/windows/amd64/drone-gcr.exe ./cmd/drone-gar |
| 67 | + |
66 | 68 | - name: build docker plugin |
67 | 69 | image: plugins/docker@sha256:f0233d950ae87ee6cb5500b2d5497fe02aa338201c0bdce2619f443fd174cfa4 |
68 | 70 | settings: |
@@ -123,7 +125,21 @@ steps: |
123 | 125 | purge: false |
124 | 126 | when: |
125 | 127 | event: [push, tag] |
126 | | - |
| 128 | + - name: build gar plugin |
| 129 | + image: plugins/docker@sha256:f0233d950ae87ee6cb5500b2d5497fe02aa338201c0bdce2619f443fd174cfa4 |
| 130 | + pull: never |
| 131 | + settings: |
| 132 | + dockerfile: docker/gar/Dockerfile.windows.amd64.1809 |
| 133 | + repo: plugins/gar |
| 134 | + username: |
| 135 | + from_secret: docker_username |
| 136 | + password: |
| 137 | + from_secret: docker_password |
| 138 | + auto_tag: true |
| 139 | + auto_tag_suffix: windows-1809-amd64 |
| 140 | + purge: false |
| 141 | + when: |
| 142 | + event: [push, tag] |
127 | 143 | depends_on: |
128 | 144 | - testing |
129 | 145 |
|
@@ -154,6 +170,7 @@ steps: |
154 | 170 | - go build -o release/windows/amd64/drone-ecr.exe ./cmd/drone-ecr |
155 | 171 | - go build -o release/windows/amd64/drone-gcr.exe ./cmd/drone-gcr |
156 | 172 | - go build -o release/windows/amd64/drone-acr.exe ./cmd/drone-acr |
| 173 | + - go build -o release/windows/amd64/drone-gcr.exe ./cmd/drone-gar |
157 | 174 | - name: build docker plugin |
158 | 175 | image: plugins/docker |
159 | 176 | settings: |
@@ -210,7 +227,20 @@ steps: |
210 | 227 | purge: false |
211 | 228 | when: |
212 | 229 | event: [push, tag] |
213 | | - |
| 230 | + - name: build gar plugin |
| 231 | + image: plugins/docker |
| 232 | + settings: |
| 233 | + dockerfile: docker/gar/Dockerfile.windows.amd64.ltsc2022 |
| 234 | + repo: plugins/gar |
| 235 | + username: |
| 236 | + from_secret: docker_username |
| 237 | + password: |
| 238 | + from_secret: docker_password |
| 239 | + auto_tag: true |
| 240 | + auto_tag_suffix: windows-ltsc2022-amd64 |
| 241 | + purge: false |
| 242 | + when: |
| 243 | + event: [push, tag] |
214 | 244 | depends_on: |
215 | 245 | - testing |
216 | 246 |
|
@@ -444,7 +474,6 @@ trigger: |
444 | 474 |
|
445 | 475 | depends_on: |
446 | 476 | - linux-amd64-docker |
447 | | - |
448 | 477 | --- |
449 | 478 | kind: pipeline |
450 | 479 | name: linux-arm64-gcr |
@@ -539,7 +568,158 @@ depends_on: |
539 | 568 | - windows-ltsc2022 |
540 | 569 | - linux-amd64-gcr |
541 | 570 | - linux-arm64-gcr |
| 571 | +--- |
| 572 | +kind: pipeline |
| 573 | +name: linux-amd64-gar |
| 574 | +type: vm |
| 575 | + |
| 576 | +pool: |
| 577 | + use: ubuntu |
| 578 | + |
| 579 | +platform: |
| 580 | + os: linux |
| 581 | + arch: amd64 |
| 582 | + |
| 583 | +steps: |
| 584 | + - name: build-push |
| 585 | + image: golang:1.21 |
| 586 | + commands: |
| 587 | + - 'go build -v -ldflags "-X main.version=${DRONE_COMMIT_SHA:0:8}" -a -tags netgo -o release/linux/amd64/drone-gar ./cmd/drone-gar' |
| 588 | + environment: |
| 589 | + CGO_ENABLED: 0 |
| 590 | + when: |
| 591 | + event: |
| 592 | + exclude: |
| 593 | + - tag |
| 594 | + |
| 595 | + - name: build-tag |
| 596 | + image: golang:1.21 |
| 597 | + commands: |
| 598 | + - 'go build -v -ldflags "-X main.version=${DRONE_TAG##v}" -a -tags netgo -o release/linux/amd64/drone-gar ./cmd/drone-gar' |
| 599 | + environment: |
| 600 | + CGO_ENABLED: 0 |
| 601 | + when: |
| 602 | + event: |
| 603 | + - tag |
| 604 | + |
| 605 | + - name: publish |
| 606 | + image: plugins/docker:18 |
| 607 | + settings: |
| 608 | + auto_tag: true |
| 609 | + auto_tag_suffix: linux-amd64 |
| 610 | + daemon_off: false |
| 611 | + dockerfile: docker/gar/Dockerfile.linux.amd64 |
| 612 | + password: |
| 613 | + from_secret: docker_password |
| 614 | + repo: plugins/gar |
| 615 | + username: |
| 616 | + from_secret: docker_username |
| 617 | + when: |
| 618 | + event: |
| 619 | + exclude: |
| 620 | + - pull_request |
| 621 | + |
| 622 | +trigger: |
| 623 | + ref: |
| 624 | + - refs/heads/master |
| 625 | + - "refs/tags/**" |
| 626 | + - "refs/pull/**" |
| 627 | + |
| 628 | +depends_on: |
| 629 | + - linux-amd64-docker |
| 630 | +--- |
| 631 | +kind: pipeline |
| 632 | +name: linux-arm64-gar |
| 633 | +type: vm |
| 634 | + |
| 635 | +pool: |
| 636 | + use: ubuntu_arm64 |
| 637 | + |
| 638 | +platform: |
| 639 | + os: linux |
| 640 | + arch: arm64 |
| 641 | + |
| 642 | +steps: |
| 643 | + - name: build-push |
| 644 | + image: golang:1.21 |
| 645 | + commands: |
| 646 | + - 'go build -v -ldflags "-X main.version=${DRONE_COMMIT_SHA:0:8}" -a -tags netgo -o release/linux/arm64/drone-gar ./cmd/drone-gar' |
| 647 | + environment: |
| 648 | + CGO_ENABLED: 0 |
| 649 | + when: |
| 650 | + event: |
| 651 | + exclude: |
| 652 | + - tag |
| 653 | + |
| 654 | + - name: build-tag |
| 655 | + image: golang:1.21 |
| 656 | + commands: |
| 657 | + - 'go build -v -ldflags "-X main.version=${DRONE_TAG##v}" -a -tags netgo -o release/linux/arm64/drone-gar ./cmd/drone-gar' |
| 658 | + environment: |
| 659 | + CGO_ENABLED: 0 |
| 660 | + when: |
| 661 | + event: |
| 662 | + - tag |
| 663 | + |
| 664 | + - name: publish |
| 665 | + image: plugins/docker:18 |
| 666 | + settings: |
| 667 | + auto_tag: true |
| 668 | + auto_tag_suffix: linux-arm64 |
| 669 | + daemon_off: false |
| 670 | + dockerfile: docker/gar/Dockerfile.linux.arm64 |
| 671 | + password: |
| 672 | + from_secret: docker_password |
| 673 | + repo: plugins/gar |
| 674 | + username: |
| 675 | + from_secret: docker_username |
| 676 | + when: |
| 677 | + event: |
| 678 | + exclude: |
| 679 | + - pull_request |
542 | 680 |
|
| 681 | +trigger: |
| 682 | + ref: |
| 683 | + - refs/heads/master |
| 684 | + - "refs/tags/**" |
| 685 | + - "refs/pull/**" |
| 686 | + |
| 687 | +depends_on: |
| 688 | + - linux-arm64-docker |
| 689 | +--- |
| 690 | +kind: pipeline |
| 691 | +name: notifications-gar |
| 692 | +type: vm |
| 693 | + |
| 694 | +pool: |
| 695 | + use: ubuntu |
| 696 | + |
| 697 | +platform: |
| 698 | + os: linux |
| 699 | + arch: amd64 |
| 700 | + |
| 701 | +steps: |
| 702 | + - name: manifest |
| 703 | + image: plugins/manifest |
| 704 | + settings: |
| 705 | + auto_tag: true |
| 706 | + ignore_missing: true |
| 707 | + password: |
| 708 | + from_secret: docker_password |
| 709 | + spec: docker/gar/manifest.tmpl |
| 710 | + username: |
| 711 | + from_secret: docker_username |
| 712 | + |
| 713 | +trigger: |
| 714 | + ref: |
| 715 | + - refs/heads/master |
| 716 | + - "refs/tags/**" |
| 717 | + |
| 718 | +depends_on: |
| 719 | + - windows-1809 |
| 720 | + - windows-ltsc2022 |
| 721 | + - linux-amd64-gar |
| 722 | + - linux-arm64-gar |
543 | 723 | --- |
544 | 724 | kind: pipeline |
545 | 725 | name: linux-amd64-ecr |
|
0 commit comments