1
0
mirror of https://github.com/goreleaser/goreleaser.git synced 2025-04-13 11:50:34 +02:00

fix: docker login using password stdin (#1617)

Instead of passing the password using the `-p` arg which is deprecated, we now use `--password-stdin` which is recommended.

Solves the following warning:
```
WARNING! Using --password via the CLI is insecure. Use --password-stdin.
```
This commit is contained in:
Nadir Boukeffa 2020-06-18 19:10:47 +02:00 committed by GitHub
parent ff9e7be643
commit 48b2a1f3e6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -2,7 +2,7 @@
if [ -n "$DOCKER_USERNAME" ] && [ -n "$DOCKER_PASSWORD" ]; then
echo "Login to the docker..."
docker login -u $DOCKER_USERNAME -p $DOCKER_PASSWORD $DOCKER_REGISTRY
echo $DOCKER_PASSWORD | docker login -u $DOCKER_USERNAME --password-stdin $DOCKER_REGISTRY
fi
# Workaround for github actions when access to different repositories is needed.