move docker login after keychain creation

Signed-off-by: Alex Goodman <alex.goodman@anchore.com>
This commit is contained in:
Alex Goodman
2021-03-26 10:41:44 -04:00
parent cedf8cd6d7
commit 2a9b1b2680
2 changed files with 10 additions and 3 deletions
+4
View File
@@ -288,6 +288,10 @@ release: clean-dist changelog-release ## Build and publish final binaries and pa
# Prepare for macOS-specific signing process
.github/scripts/mac-prepare-for-signing.sh
# login to docker
# note: the previous step creates a new keychain, so it is important to reauth into docker.io
@echo $${DOCKER_PASSWORD} | docker login docker.io -u $${DOCKER_USERNAME} --password-stdin
# create a config with the dist dir overridden
echo "dist: $(DISTDIR)" > $(TEMPDIR)/goreleaser.yaml
cat .goreleaser.yaml >> $(TEMPDIR)/goreleaser.yaml