|
| 1 | +project_name: resticprofile |
| 2 | + |
| 3 | +before: |
| 4 | + hooks: |
| 5 | + - go mod download |
| 6 | + - go generate ./... |
| 7 | + - eget rclone/rclone --upgrade-only --system=linux/amd64 --to=build/rclone-amd64 --asset=zip |
| 8 | + - eget rclone/rclone --upgrade-only --system=linux/arm64 --to=build/rclone-arm64 --asset=zip |
| 9 | + - eget restic/restic --upgrade-only --system=linux/amd64 --to=build/restic-amd64 |
| 10 | + - eget restic/restic --upgrade-only --system=linux/arm64 --to=build/restic-arm64 |
| 11 | + |
| 12 | +builds: |
| 13 | + - id: resticprofile_targz |
| 14 | + env: |
| 15 | + - CGO_ENABLED=0 |
| 16 | + goos: |
| 17 | + - linux |
| 18 | + goarch: |
| 19 | + - amd64 |
| 20 | + - arm64 |
| 21 | + |
| 22 | +archives: |
| 23 | + - id: targz |
| 24 | + builds: |
| 25 | + - resticprofile_targz |
| 26 | + format: tar.gz |
| 27 | + |
| 28 | +dockers: |
| 29 | + - image_templates: |
| 30 | + - "creativeprojects/resticprofile:latest-amd64" |
| 31 | + - "creativeprojects/resticprofile:{{ .RawVersion }}-amd64" |
| 32 | + ids: |
| 33 | + - resticprofile_targz |
| 34 | + use: buildx |
| 35 | + goos: linux |
| 36 | + goarch: amd64 |
| 37 | + dockerfile: build/Dockerfile |
| 38 | + extra_files: |
| 39 | + - build/restic-amd64 |
| 40 | + - build/rclone-amd64 |
| 41 | + build_flag_templates: |
| 42 | + - "--platform=linux/amd64" |
| 43 | + - "--build-arg=ARCH=amd64" |
| 44 | + skip_push: true # remove after Sunday |
| 45 | + - image_templates: |
| 46 | + - "creativeprojects/resticprofile:latest-arm64v8" |
| 47 | + - "creativeprojects/resticprofile:{{ .RawVersion }}-arm64v8" |
| 48 | + ids: |
| 49 | + - resticprofile_targz |
| 50 | + use: buildx |
| 51 | + goos: linux |
| 52 | + goarch: arm64 |
| 53 | + dockerfile: build/Dockerfile |
| 54 | + extra_files: |
| 55 | + - build/restic-arm64 |
| 56 | + - build/rclone-arm64 |
| 57 | + build_flag_templates: |
| 58 | + - "--platform=linux/arm64/v8" |
| 59 | + - "--build-arg=ARCH=arm64" |
| 60 | + skip_push: true # remove after Sunday |
| 61 | + |
| 62 | +docker_manifests: |
| 63 | + - name_template: creativeprojects/resticprofile:{{ .RawVersion }} |
| 64 | + image_templates: |
| 65 | + - creativeprojects/resticprofile:{{ .RawVersion }}-amd64 |
| 66 | + - creativeprojects/resticprofile:{{ .RawVersion }}-arm64v8 |
| 67 | + skip_push: true # remove after Sunday |
| 68 | + - name_template: creativeprojects/resticprofile:latest |
| 69 | + image_templates: |
| 70 | + - creativeprojects/resticprofile:latest-amd64 |
| 71 | + - creativeprojects/resticprofile:latest-arm64v8 |
| 72 | + skip_push: true # remove after Sunday |
| 73 | + |
| 74 | +release: |
| 75 | + disable: true |
0 commit comments