publish
This commit is contained in:
29
Makefile
29
Makefile
@@ -1,6 +1,25 @@
|
||||
#!make
|
||||
|
||||
include env
|
||||
export
|
||||
|
||||
ifndef OC_VERSION
|
||||
$(error OC_VERSION is not set)
|
||||
endif
|
||||
|
||||
ifndef PUBLISH_TOKEN
|
||||
$(error PUBLISH_TOKEN is not set)
|
||||
endif
|
||||
|
||||
# PUBLISH_REPO := "na/oc-version"
|
||||
PUBLISH_REPO := "ej/oc-test"
|
||||
PUBLISH_BRANCH := main
|
||||
|
||||
.PHONY: publish
|
||||
publish:
|
||||
curl -X 'POST' \
|
||||
'https://cloud.o-forge.io/api/v1/repos/core/oc-deploy/releases/2/assets?name=oc.json&token=92ad0a4b3d75ec7c5964913b7085d7ddf379247c' \
|
||||
-H 'accept: application/json' \
|
||||
-H 'Content-Type: multipart/form-data' \
|
||||
-F 'attachment=@oc.json;type=application/json'
|
||||
@echo Publication de : ${OC_VERSION}
|
||||
@(cd publish && \
|
||||
PUBLISH_REPO=${PUBLISH_REPO} \
|
||||
PUBLISH_TOKEN=${PUBLISH_TOKEN} \
|
||||
PUBLISH_BRANCH=${PUBLISH_BRANCH} \
|
||||
go run main.go ${OC_VERSION})
|
||||
|
||||
Reference in New Issue
Block a user