From 753ae323a9e047d826209489084f1fd4ed3020ab Mon Sep 17 00:00:00 2001 From: Alexei Ledenev Date: Mon, 4 Nov 2019 10:16:02 +0200 Subject: [PATCH] fix goreleaser hook: cannot use complex commands --- .goreleaser.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.goreleaser.yml b/.goreleaser.yml index 167b28f..1db4bf0 100644 --- a/.goreleaser.yml +++ b/.goreleaser.yml @@ -4,7 +4,7 @@ env: before: hooks: - go mod download - - echo {{ .Env.DOCKER_TOKEN }} | docker login -u {{ .Env.DOCKER_USERNAME }} --password-stdin {{ .Env.DOCKER_REGISTRY }} + - docker login -u {{ .Env.DOCKER_USERNAME }} -p {{ .Env.DOCKER_TOKEN }} {{ .Env.DOCKER_REGISTRY }} builds: - env: