Skip to content

Commit

Permalink
Revert latest tag changes
Browse files Browse the repository at this point in the history
  • Loading branch information
abhishekdwivedi3060 committed Mar 13, 2024
1 parent 1b24f0f commit 7bbb67d
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 8 deletions.
5 changes: 2 additions & 3 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@ PLATFORMS ?= linux/amd64,linux/arm64
VERSION ?= 2.1.0
# Image URL to use all building/pushing aerospike-kubernetes-init image targets
IMG ?= aerospike/aerospike-kubernetes-init-nightly:${VERSION}
EXTRA_TAG ?= ${IMG}


# Get the currently used golang install path (in GOPATH/bin, unless GOBIN is set)
Expand Down Expand Up @@ -74,14 +73,14 @@ run: fmt vet ## Run a akoinit from your host.
docker-buildx-build: ## Build docker image for the init container for cross-platform support
- docker buildx create --name project-v3-builder
docker buildx use project-v3-builder
docker buildx build --load --no-cache --provenance=false --tag ${IMG} --tag ${EXTRA_TAG} --build-arg VERSION=$(VERSION) .
docker buildx build --load --no-cache --provenance=false --tag ${IMG} --build-arg VERSION=$(VERSION) .
- docker buildx rm project-v3-builder

.PHONY: docker-buildx-build-push
docker-buildx-build-push: ## Build and push docker image for the init container for cross-platform support
- docker buildx create --name project-v3-builder
docker buildx use project-v3-builder
docker buildx build --push --no-cache --provenance=false --platform=$(PLATFORMS) --tag ${IMG} --tag ${EXTRA_TAG} --build-arg VERSION=$(VERSION) .
docker buildx build --push --no-cache --provenance=false --platform=$(PLATFORMS) --tag ${IMG} --build-arg VERSION=$(VERSION) .
- docker buildx rm project-v3-builder

.PHONY: docker-buildx-build-push-openshift
Expand Down
10 changes: 5 additions & 5 deletions scripts/build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -14,12 +14,12 @@ if [ "$REF_TYPE" != 'tag' ]; then
fi

# Push docker image to dockerhub
make docker-buildx-build-push IMG="$IMG_BASE":"$TAG" EXTRA_TAG="$IMG_BASE":latest
make docker-buildx-build-push IMG="$IMG_BASE":"$TAG"

# Push docker image to ECR for testing
ECR_IMG_BASE="$AWS_ECR"/"$IMG_BASE"
make docker-buildx-build-push IMG="$ECR_IMG_BASE":"$TAG" EXTRA_TAG="$ECR_IMG_BASE":latest
ECR_IMG="$AWS_ECR"/"$IMG_BASE":"$TAG"
make docker-buildx-build-push IMG="$ECR_IMG"

# Push docker image to Quay with non-root user
QUAY_IMG_BASE=quay.io/"$IMG_BASE"
make docker-buildx-build-push-openshift IMG="$QUAY_IMG_BASE":"$TAG" EXTRA_TAG="$QUAY_IMG_BASE":latest
QUAY_IMG=quay.io/"$IMG_BASE":"$TAG"
make docker-buildx-build-push-openshift IMG="$QUAY_IMG"

0 comments on commit 7bbb67d

Please sign in to comment.