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:
parent
ff9e7be643
commit
48b2a1f3e6
@ -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.
|
||||
|
Loading…
x
Reference in New Issue
Block a user