oc-deploy/Makefile

35 lines
603 B
Makefile
Raw Normal View History

2024-09-13 14:43:09 +02:00
#!make
include env
export
ifndef OC_VERSION
$(error OC_VERSION is not set)
endif
ifndef PUBLISH_TOKEN
$(error PUBLISH_TOKEN is not set)
endif
2024-09-13 14:57:24 +02:00
PUBLISH_REPO := "core/oc-deploy"
2024-09-13 14:43:09 +02:00
PUBLISH_BRANCH := main
2024-09-18 10:40:33 +02:00
help:
@echo
@echo 'Usage:'
@echo ' make publish'
@echo ' make clean'
2024-09-13 14:43:09 +02:00
.PHONY: publish
2024-09-11 15:44:20 +02:00
publish:
2024-09-13 14:43:09 +02:00
@echo Publication de : ${OC_VERSION}
2024-09-18 21:31:18 +02:00
@(cd src && make --quiet build VERSION=$(OC_VERSION))
2024-09-13 14:43:09 +02:00
@(cd publish && \
PUBLISH_REPO=${PUBLISH_REPO} \
PUBLISH_TOKEN=${PUBLISH_TOKEN} \
PUBLISH_BRANCH=${PUBLISH_BRANCH} \
go run main.go ${OC_VERSION})
2024-09-13 14:57:24 +02:00
clean:
@rm *.base64