DOCKER_HUB --> DOCKERHUB

This commit is contained in:
Michael Grote 2021-11-02 19:48:26 +01:00
parent 6adc48d77f
commit dcfb45f30a
2 changed files with 10 additions and 10 deletions

View file

@ -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=<your_docker_hub_pass>
export MF_DOCKER_HUB_USER=<your_docker_hub_user>
export MF_DOCKERHUB_PASS=<your_docker_hub_pass>
export MF_DOCKERHUB_USER=<your_docker_hub_user>
./build.sh
```

View file

@ -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"