mirror of
				https://github.com/abhinavxd/libredesk.git
				synced 2025-11-04 05:53:30 +00:00 
			
		
		
		
	chore: update GoReleaser configuration for ARM and standard builds
This commit is contained in:
		@@ -27,12 +27,9 @@ builds:
 | 
			
		||||
    binary: 'libredesk{{ if eq .Os "windows" }}.exe{{ end }}'
 | 
			
		||||
    ldflags:
 | 
			
		||||
      - -s -w -X main.version={{.Version}} -X main.commit={{.Commit}} -X main.date={{.Date}}
 | 
			
		||||
 | 
			
		||||
    hooks:
 | 
			
		||||
      # Stuff executables with static assets.
 | 
			
		||||
      post: make stuff BIN={{ .Path }}
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
  - id: "arm"
 | 
			
		||||
    main: ./cmd
 | 
			
		||||
    env:
 | 
			
		||||
@@ -50,6 +47,8 @@ builds:
 | 
			
		||||
    binary: 'libredesk{{ if eq .Os "windows" }}.exe{{ end }}'
 | 
			
		||||
    ldflags:
 | 
			
		||||
      - -s -w -X main.version={{.Version}} -X main.commit={{.Commit}} -X main.date={{.Date}}
 | 
			
		||||
    hooks:
 | 
			
		||||
      post: make stuff BIN={{ .Path }}
 | 
			
		||||
 | 
			
		||||
archives:
 | 
			
		||||
  - format: tar.gz
 | 
			
		||||
@@ -71,7 +70,7 @@ dockers:
 | 
			
		||||
    goos: linux
 | 
			
		||||
    goarch: amd64
 | 
			
		||||
    ids:
 | 
			
		||||
      - libredesk
 | 
			
		||||
      - standard
 | 
			
		||||
    image_templates:
 | 
			
		||||
      - "{{ .Env.DOCKER_ORG }}/{{ .ProjectName }}:latest-amd64"
 | 
			
		||||
      - "{{ .Env.DOCKER_ORG }}/{{ .ProjectName }}:{{ .Tag }}-amd64"
 | 
			
		||||
@@ -90,18 +89,19 @@ dockers:
 | 
			
		||||
    dockerfile: Dockerfile
 | 
			
		||||
    extra_files:
 | 
			
		||||
      - config.toml.sample
 | 
			
		||||
 | 
			
		||||
  - use: buildx
 | 
			
		||||
    goos: linux
 | 
			
		||||
    goarch: arm64
 | 
			
		||||
    ids:
 | 
			
		||||
      - libredesk
 | 
			
		||||
      - standard
 | 
			
		||||
    image_templates:
 | 
			
		||||
      - "{{ .Env.DOCKER_ORG }}/{{ .ProjectName }}:latest-arm64v8"
 | 
			
		||||
      - "{{ .Env.DOCKER_ORG }}/{{ .ProjectName }}:{{ .Tag }}-arm64v8"
 | 
			
		||||
      - "ghcr.io/{{ .Env.GITHUB_ORG }}/{{ .ProjectName }}:latest-arm64v8"
 | 
			
		||||
      - "ghcr.io/{{ .Env.GITHUB_ORG }}/{{ .ProjectName }}:{{ .Tag }}-arm64v8"
 | 
			
		||||
      - "{{ .Env.DOCKER_ORG }}/{{ .ProjectName }}:latest-arm64"
 | 
			
		||||
      - "{{ .Env.DOCKER_ORG }}/{{ .ProjectName }}:{{ .Tag }}-arm64"
 | 
			
		||||
      - "ghcr.io/{{ .Env.GITHUB_ORG }}/{{ .ProjectName }}:latest-arm64"
 | 
			
		||||
      - "ghcr.io/{{ .Env.GITHUB_ORG }}/{{ .ProjectName }}:{{ .Tag }}-arm64"
 | 
			
		||||
    build_flag_templates:
 | 
			
		||||
      - --platform=linux/arm64/v8
 | 
			
		||||
      - --platform=linux/arm64
 | 
			
		||||
      - --label=org.opencontainers.image.title={{ .ProjectName }}
 | 
			
		||||
      - --label=org.opencontainers.image.description={{ .ProjectName }}
 | 
			
		||||
      - --label=org.opencontainers.image.url=https://github.com/{{ .Env.GITHUB_ORG }}/{{ .ProjectName }}
 | 
			
		||||
@@ -113,12 +113,13 @@ dockers:
 | 
			
		||||
    dockerfile: Dockerfile
 | 
			
		||||
    extra_files:
 | 
			
		||||
      - config.toml.sample
 | 
			
		||||
 | 
			
		||||
  - use: buildx
 | 
			
		||||
    goos: linux
 | 
			
		||||
    goarch: arm
 | 
			
		||||
    goarm: 6
 | 
			
		||||
    ids:
 | 
			
		||||
      - libredesk
 | 
			
		||||
      - arm
 | 
			
		||||
    image_templates:
 | 
			
		||||
      - "{{ .Env.DOCKER_ORG }}/{{ .ProjectName }}:latest-armv6"
 | 
			
		||||
      - "{{ .Env.DOCKER_ORG }}/{{ .ProjectName }}:{{ .Tag }}-armv6"
 | 
			
		||||
@@ -137,12 +138,13 @@ dockers:
 | 
			
		||||
    dockerfile: Dockerfile
 | 
			
		||||
    extra_files:
 | 
			
		||||
      - config.toml.sample
 | 
			
		||||
 | 
			
		||||
  - use: buildx
 | 
			
		||||
    goos: linux
 | 
			
		||||
    goarch: arm
 | 
			
		||||
    goarm: 7
 | 
			
		||||
    ids:
 | 
			
		||||
      - libredesk
 | 
			
		||||
      - arm
 | 
			
		||||
    image_templates:
 | 
			
		||||
      - "{{ .Env.DOCKER_ORG }}/{{ .ProjectName }}:latest-armv7"
 | 
			
		||||
      - "{{ .Env.DOCKER_ORG }}/{{ .ProjectName }}:{{ .Tag }}-armv7"
 | 
			
		||||
@@ -166,25 +168,25 @@ docker_manifests:
 | 
			
		||||
  - name_template: "{{ .Env.DOCKER_ORG }}/{{ .ProjectName }}:latest"
 | 
			
		||||
    image_templates:
 | 
			
		||||
      - "{{ .Env.DOCKER_ORG }}/{{ .ProjectName }}:latest-amd64"
 | 
			
		||||
      - "{{ .Env.DOCKER_ORG }}/{{ .ProjectName }}:latest-arm64v8"
 | 
			
		||||
      - "{{ .Env.DOCKER_ORG }}/{{ .ProjectName }}:latest-arm64"
 | 
			
		||||
      - "{{ .Env.DOCKER_ORG }}/{{ .ProjectName }}:latest-armv6"
 | 
			
		||||
      - "{{ .Env.DOCKER_ORG }}/{{ .ProjectName }}:latest-armv7"
 | 
			
		||||
  - name_template: "{{ .Env.DOCKER_ORG }}/{{ .ProjectName }}:{{ .Tag }}"
 | 
			
		||||
    image_templates:
 | 
			
		||||
      - "{{ .Env.DOCKER_ORG }}/{{ .ProjectName }}:{{ .Tag }}-amd64"
 | 
			
		||||
      - "{{ .Env.DOCKER_ORG }}/{{ .ProjectName }}:{{ .Tag }}-arm64v8"
 | 
			
		||||
      - "{{ .Env.DOCKER_ORG }}/{{ .ProjectName }}:{{ .Tag }}-arm64"
 | 
			
		||||
      - "{{ .Env.DOCKER_ORG }}/{{ .ProjectName }}:{{ .Tag }}-armv6"
 | 
			
		||||
      - "{{ .Env.DOCKER_ORG }}/{{ .ProjectName }}:{{ .Tag }}-armv7"
 | 
			
		||||
  - name_template: ghcr.io/{{ .Env.GITHUB_ORG }}/{{ .ProjectName }}:latest
 | 
			
		||||
    image_templates:
 | 
			
		||||
      - ghcr.io/{{ .Env.GITHUB_ORG }}/{{ .ProjectName }}:latest-amd64
 | 
			
		||||
      - ghcr.io/{{ .Env.GITHUB_ORG }}/{{ .ProjectName }}:latest-arm64v8
 | 
			
		||||
      - ghcr.io/{{ .Env.GITHUB_ORG }}/{{ .ProjectName }}:latest-arm64
 | 
			
		||||
      - ghcr.io/{{ .Env.GITHUB_ORG }}/{{ .ProjectName }}:latest-armv6
 | 
			
		||||
      - ghcr.io/{{ .Env.GITHUB_ORG }}/{{ .ProjectName }}:latest-armv7
 | 
			
		||||
  - name_template: ghcr.io/{{ .Env.GITHUB_ORG }}/{{ .ProjectName }}:{{ .Tag }}
 | 
			
		||||
    image_templates:
 | 
			
		||||
      - ghcr.io/{{ .Env.GITHUB_ORG }}/{{ .ProjectName }}:{{ .Tag }}-amd64
 | 
			
		||||
      - ghcr.io/{{ .Env.GITHUB_ORG }}/{{ .ProjectName }}:{{ .Tag }}-arm64v8
 | 
			
		||||
      - ghcr.io/{{ .Env.GITHUB_ORG }}/{{ .ProjectName }}:{{ .Tag }}-arm64
 | 
			
		||||
      - ghcr.io/{{ .Env.GITHUB_ORG }}/{{ .ProjectName }}:{{ .Tag }}-armv6
 | 
			
		||||
      - ghcr.io/{{ .Env.GITHUB_ORG }}/{{ .ProjectName }}:{{ .Tag }}-armv7
 | 
			
		||||
 | 
			
		||||
@@ -193,4 +195,4 @@ release:
 | 
			
		||||
    owner: abhinavxd
 | 
			
		||||
    name: libredesk
 | 
			
		||||
  prerelease: auto
 | 
			
		||||
  draft: true
 | 
			
		||||
  draft: true
 | 
			
		||||
		Reference in New Issue
	
	Block a user