From dcfb45f30a291d7659d890e6eb92234d014ce91e Mon Sep 17 00:00:00 2001 From: Michael Grote Date: Tue, 2 Nov 2021 19:48:26 +0100 Subject: [PATCH] DOCKER_HUB --> DOCKERHUB --- README.md | 4 ++-- build.sh | 16 ++++++++-------- 2 files changed, 10 insertions(+), 10 deletions(-) diff --git a/README.md b/README.md index d64513a..dd8a3bd 100644 --- a/README.md +++ b/README.md @@ -80,8 +80,8 @@ If `MF_DEBUG` is set to `1`, `miniflux-filter` will print extra output to stdou ```shell git clone https://git.mgrote.net/mg/miniflux-filter cd miniflux-filter -export MF_DOCKER_HUB_PASS= -export MF_DOCKER_HUB_USER= +export MF_DOCKERHUB_PASS= +export MF_DOCKERHUB_USER= ./build.sh ``` diff --git a/build.sh b/build.sh index 620d983..9caa530 100755 --- a/build.sh +++ b/build.sh @@ -1,5 +1,5 @@ #!/bin/bash -MF_DOCKER_HUB_USER="${MF_DOCKER_HUB_USER:=quotengrote}" +MF_DOCKERHUB_USER="${MF_DOCKERHUB_USER:=quotengrote}" db_projectname="miniflux-filter" db_commit_id=$(git rev-parse --short HEAD) @@ -12,16 +12,16 @@ if ! shellcheck ./filter.sh; then fi # pruefe ob kw gesetzt ist -if [[ -z "$MF_DOCKER_HUB_PASS" ]]; then +if [[ -z "$MF_DOCKERHUB_PASS" ]]; then # shellcheck disable=SC2016 - echo '"$MF_DOCKER_HUB_PASS"' not set. + echo '"$MF_DOCKERHUB_PASS"' not set. exit 2 fi # login -docker login --username "$MF_DOCKER_HUB_USER" --password "$MF_DOCKER_HUB_PASS" +docker login --username "$MF_DOCKERHUB_USER" --password "$MF_DOCKERHUB_PASS" # latest -docker build -t "$MF_DOCKER_HUB_USER"/"$db_projectname" . -docker push "$MF_DOCKER_HUB_USER"/"$db_projectname":latest +docker build -t "$MF_DOCKERHUB_USER"/"$db_projectname" . +docker push "$MF_DOCKERHUB_USER"/"$db_projectname":latest # commit-id -docker tag "$MF_DOCKER_HUB_USER"/"$db_projectname":latest "$MF_DOCKER_HUB_USER"/"$db_projectname":"$db_commit_id" -docker push "$MF_DOCKER_HUB_USER"/"$db_projectname":"$db_commit_id" +docker tag "$MF_DOCKERHUB_USER"/"$db_projectname":latest "$MF_DOCKERHUB_USER"/"$db_projectname":"$db_commit_id" +docker push "$MF_DOCKERHUB_USER"/"$db_projectname":"$db_commit_id"