Skip to content

Commit

Permalink
Read version from file to make CI for versioned resources pass
Browse files Browse the repository at this point in the history
  • Loading branch information
michaelsauter committed Sep 29, 2023
1 parent 66a8edc commit a7f0605
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
5 changes: 1 addition & 4 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,6 @@ SHELL = /bin/bash
MAKEFLAGS += --warn-undefined-variables
MAKEFLAGS += --no-builtin-rules

# Variables
VERSION?=latest

##@ General

# help target is based on https://github.com/operator-framework/operator-sdk/blob/master/release/Makefile.
Expand All @@ -32,7 +29,7 @@ image-go-toolset: ## Build go-toolset image.
tasks: ## Render tasks. Use VERSION=1.0.0 make tasks to render specific version.
go run github.com/opendevstack/ods-pipeline/cmd/taskmanifest \
-data ImageRepository=ghcr.io/opendevstack/ods-pipeline-go \
-data Version=$(VERSION) \
-data Version=$$(cat version) \
-template build/tasks/build.yaml \
-destination tasks/build.yaml
.PHONY: tasks
Expand Down
1 change: 1 addition & 0 deletions version
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
latest

0 comments on commit a7f0605

Please sign in to comment.