Skip to content

Commit

Permalink
fix(make): use global image tag env
Browse files Browse the repository at this point in the history
Signed-off-by: Cameron Smith <cameron.ray.smith@gmail.com>
  • Loading branch information
cameronraysmith committed Nov 25, 2023
1 parent 1d05c85 commit d0a1075
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions .example.env
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ WORKFLOW_NAME=example.training_workflow
# WORKFLOW_VERSION="d5ee0e4" # override auto version
# WORKFLOW_IMAGE="ghcr.io/flyteorg/flytekit:py3.10-1.10.0" # upstream
WORKFLOW_IMAGE="ghcr.io/repo/image:tag"
GLOBAL_IMAGE_TAG=latest
WORKFLOW_OUTPUT_FORMAT=dot
FLYTE_CLUSTER_ENDPOINT=dns:///cluster.net
GCP_PROJECT_ID=project-111111
Expand Down
4 changes: 2 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -159,8 +159,8 @@ docker_login: ## Login to ghcr docker registry. Check regcreds in $HOME/.docker/
docker login ghcr.io -u $(GH_ORG) -p $(GITHUB_TOKEN)

tag_images: ## Tag latest docker images.
crane tag $(WORKFLOW_IMAGE):$(WORKFLOW_IMAGE_TAG) latest
crane tag ghcr.io/$(GH_ORG)/$(GH_REPO):$(WORKFLOW_IMAGE_TAG) latest
crane tag $(WORKFLOW_IMAGE):$(WORKFLOW_IMAGE_TAG) $(GLOBAL_IMAGE_TAG)
crane tag ghcr.io/$(GH_ORG)/$(GH_REPO):$(WORKFLOW_IMAGE_TAG) $(GLOBAL_IMAGE_TAG)

#-------------
# system / dev
Expand Down

0 comments on commit d0a1075

Please sign in to comment.