Skip to content

Commit

Permalink
trying to get ARM images working
Browse files Browse the repository at this point in the history
  • Loading branch information
jamesread committed Jun 11, 2021
1 parent 6af8276 commit a4185e6
Showing 1 changed file with 53 additions and 3 deletions.
56 changes: 53 additions & 3 deletions .goreleaser.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ builds:
- arm

goarm:
- 6 # For old RPIs
- 7 # For old RPIs

main: cmd/OliveTin/main.go

Expand Down Expand Up @@ -70,15 +70,65 @@ archives:

dockers:
- image_templates:
- "docker.io/jamesread/olivetin:latest"
- "docker.io/jamesread/olivetin:{{ .Tag }}"
- "docker.io/jamesread/olivetin:{{ .Tag }}-amd64"
dockerfile: Dockerfile
goos: linux
goarch: amd64
skip_push: false
use_buildx: true
build_flag_templates:
- "--platform=linux/amd64"
- "--label=org.opencontainers.image.title={{.ProjectName}}"
- "--label=org.opencontainers.image.revision={{.FullCommit}}"
- "--label=org.opencontainers.image.version={{.Tag}}"
extra_files:
- webui

- image_templates:
- "docker.io/jamesread/olivetin:{{ .Tag }}-arm64"
dockerfile: Dockerfile
goos: linux
goarch: arm64
skip_push: false
use_buildx: true
build_flag_templates:
- "--platform=linux/arm64/v8"
- "--label=org.opencontainers.image.title={{.ProjectName}}"
- "--label=org.opencontainers.image.revision={{.FullCommit}}"
- "--label=org.opencontainers.image.version={{.Tag}}"
extra_files:
- webui

- image_templates:
- "docker.io/jamesread/olivetin:{{ .Tag }}-arm"
dockerfile: Dockerfile
goos: linux
goarch: arm
skip_push: false
use_buildx: true
build_flag_templates:
- "--platform=linux/arm/v7"
- "--label=org.opencontainers.image.title={{.ProjectName}}"
- "--label=org.opencontainers.image.revision={{.FullCommit}}"
- "--label=org.opencontainers.image.version={{.Tag}}"
extra_files:
- webui



docker_manifests:
- name_template: "docker.io/jamesread/olivetin:{{ .Tag }}"
image_templates:
- "docker.io/jamesread/olivetin:{{ .Tag }}-amd64"
- "docker.io/jamesread/olivetin:{{ .Tag }}-arm64"
- "docker.io/jamesread/olivetin:{{ .Tag }}-arm"

create_flags:
- --insecure

push_flags:
- --insecure

nfpms:
- maintainer: James Read <contact@jread.com>
description: OliveTin is a web interface for running Linux shell commands.
Expand Down

0 comments on commit a4185e6

Please sign in to comment.