Skip to content

Commit

Permalink
Fix docker push error
Browse files Browse the repository at this point in the history
  • Loading branch information
empire committed Mar 26, 2021
1 parent 96737a6 commit cac8ee0
Showing 1 changed file with 7 additions and 25 deletions.
32 changes: 7 additions & 25 deletions .goreleaser.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,40 +22,22 @@ archives:
386: i386
amd64: x86_64
dockers:
-
- image_templates:
- 'empire/go-tse:{{ .Tag }}-amd64'
- 'ghcr.io/empire/go-tse:{{ .Tag }}-amd64'
dockerfile: Dockerfile
goos: linux
goarch: amd64
goarm: ''

# Templates of the Docker image names.
image_templates:
- "empire/go-tse:latest"
- "empire/go-tse:{{ .Tag }}"
- "empire/go-tse:v{{ .Major }}"

# Skips the docker push. Could be useful if you also do draft releases.
# If set to auto, the release will not be pushed to the docker repository
# in case there is an indicator for prerelease in the tag e.g. v1.0.0-rc1
# Defaults to false.
skip_push: false

# Path to the Dockerfile (from the project root).
dockerfile: Dockerfile

# Whether to use `docker buildx build` instead of `docker build`.
# You probably want to set it to true when using flags like `--platform`.
# If true, will also add `--load` to the build flags.
# Defaults to false.
use_buildx: true

# Template of the docker build flags.
build_flag_templates:
- "--pull"
- "--label=org.opencontainers.image.created={{.Date}}"
- "--label=org.opencontainers.image.title={{.ProjectName}}"
- "--label=org.opencontainers.image.name={{.ProjectName}}"
- "--label=org.opencontainers.image.revision={{.FullCommit}}"
- "--label=org.opencontainers.image.version={{.Version}}"
- "--platform=linux/arm64"
- "--label=org.opencontainers.image.source={{.GitURL}}"
- "--platform=linux/amd64"
checksum:
name_template: 'checksums.txt'
snapshot:
Expand Down

0 comments on commit cac8ee0

Please sign in to comment.