From 55460035f7671d7261e67ac0739ca6cf4e131db5 Mon Sep 17 00:00:00 2001 From: Amir Zarrinkafsh Date: Mon, 9 Dec 2019 09:50:03 +1100 Subject: [PATCH] Fix README.md publication and tag cleanup for DockerHub --- cmd/authelia-scripts/docker.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cmd/authelia-scripts/docker.go b/cmd/authelia-scripts/docker.go index 96b31a1f5..cd4b9e2f3 100644 --- a/cmd/authelia-scripts/docker.go +++ b/cmd/authelia-scripts/docker.go @@ -52,7 +52,7 @@ func (d *Docker) Manifest(tag, amd64tag, arm32v7tag, arm64v8tag string) error { // CleanTag remove a tag from dockerhub. func (d *Docker) CleanTag(tag string) error { - return utils.CommandWithStdout("bash", "-c", `token=$(curl -fs --retry 3 -H "Content-Type: application/json" -X "POST" -d '{"username": "'$DOCKER_USERNAME'", "password": "'$DOCKER_PASSWORD'"}' https://hub.docker.com/v2/users/login/ | jq -r .token) && curl -fs --retry 3 -o /dev/null -L -X "DELETE" -H "Authorization: JWT $token" https://hub.docker.com/v2/repositories/"+DockerImageName+"/tags/"+tag+"/`).Run() + return utils.CommandWithStdout("bash", "-c", `token=$(curl -fs --retry 3 -H "Content-Type: application/json" -X "POST" -d '{"username": "'$DOCKER_USERNAME'", "password": "'$DOCKER_PASSWORD'"}' https://hub.docker.com/v2/users/login/ | jq -r .token) && curl -fs --retry 3 -o /dev/null -L -X "DELETE" -H "Authorization: JWT $token" https://hub.docker.com/v2/repositories/`+DockerImageName+"/tags/"+tag+"/").Run() } // PublishReadme push README.md to dockerhub.