mirror of https://github.com/k3s-io/k3s
gcloud docker now auths k8s.gcr.io by default
parent
eba5b6092a
commit
f7be352a67
|
@ -24,4 +24,4 @@ build:
|
|||
docker build --pull -t k8s.gcr.io/$(IMAGE):$(TAG) .
|
||||
|
||||
push: build
|
||||
gcloud docker --server=k8s.gcr.io -- push k8s.gcr.io/$(IMAGE):$(TAG)
|
||||
gcloud docker -- push k8s.gcr.io/$(IMAGE):$(TAG)
|
||||
|
|
|
@ -71,7 +71,7 @@ endif
|
|||
rm -rf $(TEMP_DIR)
|
||||
|
||||
push: build
|
||||
gcloud docker --server=k8s.gcr.io -- push $(REGISTRY)/$(IMAGE)-$(ARCH):$(TAG)
|
||||
gcloud docker -- push $(REGISTRY)/$(IMAGE)-$(ARCH):$(TAG)
|
||||
|
||||
clean:
|
||||
docker rmi -f $(REGISTRY)/$(IMAGE)-$(ARCH):$(TAG) || true
|
||||
|
|
|
@ -57,4 +57,4 @@ endif
|
|||
rm -rf $(TEMP_DIR)
|
||||
|
||||
push: build
|
||||
gcloud docker --server=k8s.gcr.io -- push $(REGISTRY)/$(IMAGE)-$(ARCH):$(TAG)
|
||||
gcloud docker -- push $(REGISTRY)/$(IMAGE)-$(ARCH):$(TAG)
|
||||
|
|
|
@ -55,6 +55,6 @@ endif
|
|||
docker build --pull -t $(REGISTRY)/$(IMAGE)-$(ARCH):$(TAG) $(TEMP_DIR)
|
||||
|
||||
push: build
|
||||
gcloud docker --server=k8s.gcr.io -- push $(REGISTRY)/$(IMAGE)-$(ARCH):$(TAG)
|
||||
gcloud docker -- push $(REGISTRY)/$(IMAGE)-$(ARCH):$(TAG)
|
||||
|
||||
all: push
|
||||
|
|
|
@ -87,13 +87,13 @@ endif
|
|||
|
||||
push: .push-$(ARCH)
|
||||
.push-$(ARCH): .container-$(ARCH)
|
||||
gcloud docker --server=k8s.gcr.io -- push $(IMAGE):$(TAG)
|
||||
gcloud docker -- push $(IMAGE):$(TAG)
|
||||
touch $@
|
||||
|
||||
push-legacy: .push-legacy-$(ARCH)
|
||||
.push-legacy-$(ARCH): .container-$(ARCH)
|
||||
ifeq ($(ARCH),amd64)
|
||||
gcloud docker --server=k8s.gcr.io -- push $(LEGACY_AMD64_IMAGE):$(TAG)
|
||||
gcloud docker -- push $(LEGACY_AMD64_IMAGE):$(TAG)
|
||||
endif
|
||||
touch $@
|
||||
|
||||
|
|
|
@ -46,12 +46,12 @@ build:
|
|||
docker build --pull -t $(IMAGE)-$(ARCH):$(VERSION) $(TEMP_DIR)
|
||||
|
||||
push: build
|
||||
gcloud docker --server=k8s.gcr.io -- push $(IMAGE)-$(ARCH):$(VERSION)
|
||||
gcloud docker -- push $(IMAGE)-$(ARCH):$(VERSION)
|
||||
ifeq ($(ARCH),amd64)
|
||||
# Backward compatibility. TODO: deprecate this image tag
|
||||
docker rmi $(IMAGE):$(VERSION) 2>/dev/null || true
|
||||
docker tag $(IMAGE)-$(ARCH):$(VERSION) $(IMAGE):$(VERSION)
|
||||
gcloud docker --server=k8s.gcr.io -- push $(IMAGE):$(VERSION)
|
||||
gcloud docker -- push $(IMAGE):$(VERSION)
|
||||
endif
|
||||
|
||||
clean:
|
||||
|
|
|
@ -22,7 +22,7 @@ build:
|
|||
docker build --pull -t $(PREFIX)/$(IMAGE):$(TAG) .
|
||||
|
||||
push:
|
||||
gcloud docker --server=k8s.gcr.io -- push $(PREFIX)/$(IMAGE):$(TAG)
|
||||
gcloud docker -- push $(PREFIX)/$(IMAGE):$(TAG)
|
||||
|
||||
binary:
|
||||
CGO_ENABLED=0 GOOS=linux go build -a -ldflags "-w" elasticsearch_logging_discovery.go
|
||||
|
|
|
@ -22,4 +22,4 @@ build:
|
|||
docker build --pull -t $(PREFIX)/$(IMAGE):$(TAG) .
|
||||
|
||||
push:
|
||||
gcloud docker --server=k8s.gcr.io -- push $(PREFIX)/$(IMAGE):$(TAG)
|
||||
gcloud docker -- push $(PREFIX)/$(IMAGE):$(TAG)
|
||||
|
|
|
@ -21,5 +21,5 @@ build:
|
|||
docker build --pull -t "$(IMAGE):$(VERSION)" .
|
||||
|
||||
push:
|
||||
gcloud docker --server=k8s.gcr.io -- push "$(IMAGE):$(VERSION)"
|
||||
gcloud docker -- push "$(IMAGE):$(VERSION)"
|
||||
|
||||
|
|
|
@ -21,4 +21,4 @@ build:
|
|||
docker build --pull -t $(REPO):$(TAG) .
|
||||
|
||||
push:
|
||||
gcloud docker --server=k8s.gcr.io -- push $(REPO):$(TAG)
|
||||
gcloud docker -- push $(REPO):$(TAG)
|
||||
|
|
|
@ -22,7 +22,7 @@ container:
|
|||
docker build --pull -t ${REGISTRY}/${IMAGE}:${TAG} .
|
||||
|
||||
push:
|
||||
gcloud docker --server=k8s.gcr.io -- push ${REGISTRY}/${IMAGE}:${TAG}
|
||||
gcloud docker -- push ${REGISTRY}/${IMAGE}:${TAG}
|
||||
|
||||
upload:
|
||||
./stage-upload.sh ${TAG} ${REGISTRY}/${IMAGE}:${TAG}
|
||||
|
|
|
@ -29,4 +29,4 @@ build: clean
|
|||
rm -rf etcdctl etcd-v$(ETCD_VERSION)-linux-amd64 etcd-v$(ETCD_VERSION)-linux-amd64.tar.gz
|
||||
|
||||
push: build
|
||||
gcloud docker --server=k8s.gcr.io -- push $(IMAGE):$(TAG)
|
||||
gcloud docker -- push $(IMAGE):$(TAG)
|
||||
|
|
|
@ -40,7 +40,7 @@ build:
|
|||
docker build -t $(IMAGE) $(TEMP_DIR)
|
||||
|
||||
push: build
|
||||
gcloud docker --server=k8s.gcr.io -- push $(IMAGE)
|
||||
gcloud docker -- push $(IMAGE)
|
||||
|
||||
all: build
|
||||
|
||||
|
|
|
@ -105,12 +105,12 @@ endif
|
|||
docker build --pull -t $(REGISTRY)/etcd-$(ARCH):$(REGISTRY_TAG) $(TEMP_DIR)
|
||||
|
||||
push: build
|
||||
gcloud docker --server=k8s.gcr.io -- push $(REGISTRY)/etcd-$(ARCH):$(REGISTRY_TAG)
|
||||
gcloud docker -- push $(REGISTRY)/etcd-$(ARCH):$(REGISTRY_TAG)
|
||||
|
||||
ifeq ($(ARCH),amd64)
|
||||
# Backward compatibility. TODO: deprecate this image tag
|
||||
docker tag $(REGISTRY)/etcd-$(ARCH):$(REGISTRY_TAG) $(REGISTRY)/etcd:$(REGISTRY_TAG)
|
||||
gcloud docker --server=k8s.gcr.io -- push $(REGISTRY)/etcd:$(REGISTRY_TAG)
|
||||
gcloud docker -- push $(REGISTRY)/etcd:$(REGISTRY_TAG)
|
||||
endif
|
||||
|
||||
all: build
|
||||
|
|
|
@ -44,11 +44,11 @@ endif
|
|||
rm -rf "${TEMP_DIR}"
|
||||
|
||||
push: build
|
||||
gcloud docker --server=k8s.gcr.io -- push ${REGISTRY}/hyperkube-${ARCH}:${VERSION}
|
||||
gcloud docker -- push ${REGISTRY}/hyperkube-${ARCH}:${VERSION}
|
||||
ifeq ($(ARCH),amd64)
|
||||
docker rmi ${REGISTRY}/hyperkube:${VERSION} 2>/dev/null || true
|
||||
docker tag ${REGISTRY}/hyperkube-${ARCH}:${VERSION} ${REGISTRY}/hyperkube:${VERSION}
|
||||
gcloud docker --server=k8s.gcr.io -- push ${REGISTRY}/hyperkube:${VERSION}
|
||||
gcloud docker -- push ${REGISTRY}/hyperkube:${VERSION}
|
||||
endif
|
||||
|
||||
.PHONY: build push all
|
||||
|
|
|
@ -22,6 +22,6 @@ image:
|
|||
docker build --pull -t $(PREFIX)/$(IMAGE):$(TAG) .
|
||||
|
||||
push: image
|
||||
gcloud docker --server=k8s.gcr.io -- push $(PREFIX)/$(IMAGE)
|
||||
gcloud docker -- push $(PREFIX)/$(IMAGE)
|
||||
|
||||
clean:
|
||||
|
|
|
@ -22,6 +22,6 @@ image:
|
|||
docker build --pull -t $(PREFIX)/$(IMAGE):$(TAG) .
|
||||
|
||||
push: image
|
||||
gcloud docker --server=k8s.gcr.io -- push $(PREFIX)/$(IMAGE)
|
||||
gcloud docker -- push $(PREFIX)/$(IMAGE)
|
||||
|
||||
clean:
|
||||
|
|
|
@ -24,7 +24,7 @@ container: explorer
|
|||
docker build --pull -t k8s.gcr.io/explorer:$(TAG) .
|
||||
|
||||
push: container
|
||||
gcloud docker --server=k8s.gcr.io -- push k8s.gcr.io/explorer:$(TAG)
|
||||
gcloud docker -- push k8s.gcr.io/explorer:$(TAG)
|
||||
|
||||
clean:
|
||||
rm -f explorer
|
||||
|
|
|
@ -29,7 +29,7 @@ build:
|
|||
|
||||
# push the image to an registry
|
||||
push:
|
||||
gcloud docker --server=k8s.gcr.io -- push ${REGISTRY}/guestbook:${VERSION}
|
||||
gcloud docker -- push ${REGISTRY}/guestbook:${VERSION}
|
||||
|
||||
# remove previous images and containers
|
||||
clean:
|
||||
|
|
|
@ -41,7 +41,7 @@ container:
|
|||
|
||||
push: container
|
||||
$(if $(TAG),,$(error TAG is not defined. Use 'make tag' to see a suggestion))
|
||||
gcloud docker --server=k8s.gcr.io -- push k8s.gcr.io/kubectl:$(TAG)
|
||||
gcloud docker -- push k8s.gcr.io/kubectl:$(TAG)
|
||||
|
||||
clean:
|
||||
rm -f kubectl
|
||||
|
|
|
@ -35,7 +35,7 @@ container-dev:
|
|||
build: container container-dev
|
||||
|
||||
push: build
|
||||
gcloud docker --server=k8s.gcr.io -- push ${PROJECT}/cassandra:${VERSION}
|
||||
gcloud docker --server=k8s.gcr.io -- push ${PROJECT}/cassandra:${VERSION}-dev
|
||||
gcloud docker -- push ${PROJECT}/cassandra:${VERSION}
|
||||
gcloud docker -- push ${PROJECT}/cassandra:${VERSION}-dev
|
||||
|
||||
.PHONY: all build push
|
||||
|
|
|
@ -76,10 +76,10 @@ endif
|
|||
docker build --pull -t ${IMAGE_NAME}-${ARCH}:${VERSION} ${TEMP_DIR}
|
||||
|
||||
push: build
|
||||
gcloud docker --server=k8s.gcr.io -- push ${IMAGE_NAME}-${ARCH}:${VERSION}
|
||||
gcloud docker -- push ${IMAGE_NAME}-${ARCH}:${VERSION}
|
||||
ifeq ($(ARCH),amd64)
|
||||
docker tag ${IMAGE_NAME}-${ARCH}:${VERSION} ${IMAGE_NAME}:${VERSION}
|
||||
gcloud docker --server=k8s.gcr.io -- push ${IMAGE_NAME}:${VERSION}
|
||||
gcloud docker -- push ${IMAGE_NAME}:${VERSION}
|
||||
endif
|
||||
|
||||
.PHONY: all
|
||||
|
|
|
@ -97,7 +97,7 @@ push() {
|
|||
fi
|
||||
for arch in ${archs}; do
|
||||
TAG=$(<${IMAGE}/VERSION)
|
||||
gcloud docker --server=k8s.gcr.io -- push ${REGISTRY}/${IMAGE}-${arch}:${TAG}
|
||||
gcloud docker -- push ${REGISTRY}/${IMAGE}-${arch}:${TAG}
|
||||
done
|
||||
}
|
||||
|
||||
|
|
|
@ -24,7 +24,7 @@ image:
|
|||
docker tag $(PREFIX)/volume-ceph $(PREFIX)/volume-ceph:$(TAG) # Add the version tag to the latest image
|
||||
|
||||
push: image
|
||||
gcloud docker --server=k8s.gcr.io -- push $(PREFIX)/volume-ceph # Push image tagged as latest to repository
|
||||
gcloud docker --server=k8s.gcr.io -- push $(PREFIX)/volume-ceph:$(TAG) # Push version tagged image to repository (since this image is already pushed it will simply create or update version tag)
|
||||
gcloud docker -- push $(PREFIX)/volume-ceph # Push image tagged as latest to repository
|
||||
gcloud docker -- push $(PREFIX)/volume-ceph:$(TAG) # Push version tagged image to repository (since this image is already pushed it will simply create or update version tag)
|
||||
|
||||
clean:
|
||||
|
|
|
@ -24,7 +24,7 @@ image:
|
|||
docker tag $(PREFIX)/volume-gluster $(PREFIX)/volume-gluster:$(TAG) # Add the version tag to the latest image
|
||||
|
||||
push: image
|
||||
gcloud docker --server=k8s.gcr.io -- push $(PREFIX)/volume-gluster # Push image tagged as latest to repository
|
||||
gcloud docker --server=k8s.gcr.io -- push $(PREFIX)/volume-gluster:$(TAG) # Push version tagged image to repository (since this image is already pushed it will simply create or update version tag)
|
||||
gcloud docker -- push $(PREFIX)/volume-gluster # Push image tagged as latest to repository
|
||||
gcloud docker -- push $(PREFIX)/volume-gluster:$(TAG) # Push version tagged image to repository (since this image is already pushed it will simply create or update version tag)
|
||||
|
||||
clean:
|
||||
|
|
|
@ -34,8 +34,8 @@ block:
|
|||
|
||||
push: image
|
||||
# Push image tagged as latest to repository
|
||||
gcloud docker --server=k8s.gcr.io -- push $(PREFIX)/volume-iscsi
|
||||
gcloud docker -- push $(PREFIX)/volume-iscsi
|
||||
# Push version tagged image to repository (since this image is already pushed it will simply create or update version tag)
|
||||
gcloud docker --server=k8s.gcr.io -- push $(PREFIX)/volume-iscsi:$(TAG)
|
||||
gcloud docker -- push $(PREFIX)/volume-iscsi:$(TAG)
|
||||
|
||||
clean:
|
||||
|
|
|
@ -24,7 +24,7 @@ image:
|
|||
docker tag $(PREFIX)/volume-nfs $(PREFIX)/volume-nfs:$(TAG) # Add the version tag to the latest image
|
||||
|
||||
push: image
|
||||
gcloud docker --server=k8s.gcr.io -- push $(PREFIX)/volume-nfs # Push image tagged as latest to repository
|
||||
gcloud docker --server=k8s.gcr.io -- push $(PREFIX)/volume-nfs:$(TAG) # Push version tagged image to repository (since this image is already pushed it will simply create or update version tag)
|
||||
gcloud docker -- push $(PREFIX)/volume-nfs # Push image tagged as latest to repository
|
||||
gcloud docker -- push $(PREFIX)/volume-nfs:$(TAG) # Push version tagged image to repository (since this image is already pushed it will simply create or update version tag)
|
||||
|
||||
clean:
|
||||
|
|
|
@ -34,8 +34,8 @@ block:
|
|||
|
||||
push: image
|
||||
# Push image tagged as latest to repository
|
||||
gcloud docker --server=k8s.gcr.io -- push $(PREFIX)/volume-rbd
|
||||
gcloud docker -- push $(PREFIX)/volume-rbd
|
||||
# Push version tagged image to repository (since this image is already pushed it will simply create or update version tag)
|
||||
gcloud docker --server=k8s.gcr.io -- push $(PREFIX)/volume-rbd:$(TAG)
|
||||
gcloud docker -- push $(PREFIX)/volume-rbd:$(TAG)
|
||||
|
||||
clean:
|
||||
|
|
Loading…
Reference in New Issue