Skip to content

Commit

Permalink
Prevent accidental push (#214)
Browse files Browse the repository at this point in the history
  • Loading branch information
jotak committed Dec 7, 2022
1 parent d94d3b0 commit 9e584f6
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
4 changes: 4 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -164,7 +164,11 @@ ci-images-build: image-build
$(OCI_BIN) build --build-arg BASE_IMAGE=$(IMG) -t $(IMG_SHA) -f ./shortlived.Dockerfile .

image-push: ## Push OCI image with the manager.
ifneq (,$(findstring quay.io/netobserv/,$(IMG)))
$(error Do not push to quay.io/netobserv)
else
$(OCI_BIN) push ${IMG}
endif

##@ Deployment

Expand Down
2 changes: 1 addition & 1 deletion RELEASE.md
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ The release script should be triggered ([check github actions](https://github.co
At this point, you can test the bundle / catalog on your cluster:

```bash
VERSION="$version" make catalog-deploy
BUNDLE_VERSION="$version" make catalog-deploy
```

When everything is ok, push to main and delete the test branch
Expand Down

0 comments on commit 9e584f6

Please sign in to comment.