Move image to Docker Hub

This commit is contained in:
Hidde Beydals
2019-04-17 13:43:47 +02:00
parent 521e15cc73
commit de3593799f
4 changed files with 10 additions and 10 deletions
+1 -1
View File
@@ -12,7 +12,7 @@ jobs:
- deploy:
name: Build and push image
command: |
docker login -u "$DOCKER_USER" -p "$DOCKER_PASS" quay.io
echo "$DOCKER_PASS" | docker login --username "$DOCKER_USER" --password-stdin
if [ -z "${CIRCLE_TAG}" ]; then
make publish-image
else
+4 -4
View File
@@ -23,14 +23,14 @@ cmd/kured/kured: cmd/kured/*.go
build/.image.done: cmd/kured/Dockerfile cmd/kured/kured
mkdir -p build
cp $^ build
$(SUDO) docker build -t quay.io/$(DH_ORG)/kured -f build/Dockerfile ./build
$(SUDO) docker tag quay.io/$(DH_ORG)/kured quay.io/$(DH_ORG)/kured:$(VERSION)
$(SUDO) docker build -t docker.io/$(DH_ORG)/kured -f build/Dockerfile ./build
$(SUDO) docker tag docker.io/$(DH_ORG)/kured docker.io/$(DH_ORG)/kured:$(VERSION)
touch $@
image: build/.image.done
publish-image: image
$(SUDO) docker push quay.io/$(DH_ORG)/kured:$(VERSION)
$(SUDO) docker push docker.io/$(DH_ORG)/kured:$(VERSION)
minikube-publish: image
$(SUDO) docker save quay.io/$(DH_ORG)/kured | (eval $$(minikube docker-env) && docker load)
$(SUDO) docker save docker.io/$(DH_ORG)/kured | (eval $$(minikube docker-env) && docker load)
+1 -1
View File
@@ -234,7 +234,7 @@ dep ensure && make
## Frequently Asked/Anticipated Questions
### Why is there no `latest` tag on quay.io?
### Why is there no `latest` tag on Docker Hub?
Use of `latest` for production deployments is bad practice - see
[here](https://kubernetes.io/docs/concepts/configuration/overview) for
+4 -4
View File
@@ -29,10 +29,10 @@ spec:
restartPolicy: Always
containers:
- name: kured
image: quay.io/weaveworks/kured # If you find yourself here
# wondering why there is no
# :latest tag on quay.io, see
# the FAQ in the README
image: docker.io/weaveworks/kured # If you find yourself here
# wondering why there is no
# :latest tag on Docker Hub,
# see the FAQ in the README
imagePullPolicy: IfNotPresent
securityContext:
privileged: true # Give permission to nsenter /proc/1/ns/mnt