From 28c29bb1163aac8ef7c42eafbf4b8b3bcfe040ef Mon Sep 17 00:00:00 2001 From: Andrew Gaul Date: Tue, 16 Nov 2021 09:13:01 +0900 Subject: [PATCH] Refer to Docker Hub andrewgaul/s3proxy repo This differs in organization from the GitHub gaul/s3proxy repo. References #388. --- publish_img.sh | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/publish_img.sh b/publish_img.sh index 324c183..7dc71f3 100755 --- a/publish_img.sh +++ b/publish_img.sh @@ -4,13 +4,15 @@ set -o errexit set -o nounset set -o pipefail +REPO=andrewgaul/s3proxy + docker login -u "$DOCKER_USER" -p "$DOCKER_PASS" -docker buildx build --platform linux/amd64 -t $GITHUB_REPOSITORY:latest . +docker buildx build --platform linux/amd64 -t $REPO:latest . if [[ "$GITHUB_EVENT_NAME" == "push" && $GITHUB_REF == refs/heads/master ]]; then - docker tag $GITHUB_REPOSITORY:latest $GITHUB_REPOSITORY:${GITHUB_SHA::8} - docker push --all-tags $GITHUB_REPOSITORY + docker tag $REPO:latest $REPO:${GITHUB_SHA::8} + docker push --all-tags $REPO elif [[ "$GITHUB_EVENT_NAME" == "create" && $GITHUB_REF == refs/tags/* ]]; then - docker tag $GITHUB_REPOSITORY:latest $GITHUB_REPOSITORY:${GITHUB_REF#refs/tags/} - docker push --all-tags $GITHUB_REPOSITORY + docker tag $REPO:latest $REPO:${GITHUB_REF#refs/tags/} + docker push --all-tags $REPO fi