-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathMakefile
41 lines (36 loc) · 1.58 KB
/
Makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
# Set these to the desired values
ARTIFACT_ID=usermgt
VERSION=1.20.0-1
# overwrite ADDITIONAL_LDFLAGS to disable static compilation
# this should fix https://github.com/golang/go/issues/13470
ADDITIONAL_LDFLAGS=""
NPM_REGISTRY_RELEASE=https://ecosystem.cloudogu.com/nexus/repository/npm-releases/
NPM_REGISTRY_RC=https://ecosystem.cloudogu.com/nexus/repository/npm-releasecandidates/
UI_SRC=app/src/main/ui
MAKEFILES_VERSION=9.5.2
.DEFAULT_GOAL:=default
include build/make/variables.mk
include build/make/self-update.mk
include build/make/release.mk
include build/make/prerelease.mk
include build/make/bats.mk
include build/make/k8s-dogu.mk
default: dogu-release
.PHONY info:
info:
@echo Generating .npmrc file
@echo This will overwrite the existing file including the previosly generated credentials
.PHONY gen-npmrc-release:
gen-npmrc-release: info
@rm -f ${UI_SRC}/.npmrc
@echo "[email protected]" >> ${UI_SRC}/.npmrc
@echo "always-auth=true" >> ${UI_SRC}/.npmrc
@echo "_auth=$(shell bash -c 'read -p "Username: " usrname;read -s -p "Password: " pwd;echo -n "$$usrname:$$pwd" | openssl base64')" >> ${UI_SRC}/.npmrc
@echo "@cloudogu:registry=${NPM_REGISTRY_RELEASE}" >> ${UI_SRC}/.npmrc
.PHONY gen-npmrc-prerelease:
gen-npmrc-prerelease: info
@rm -f ${UI_SRC}/.npmrc
@echo "[email protected]" >> ${UI_SRC}/.npmrc
@echo "always-auth=true" >> ${UI_SRC}/.npmrc
@echo "_auth=$(shell bash -c 'read -p "Username: " usrname;read -s -p "Password: " pwd;echo -n "$$usrname:$$pwd" | openssl base64')" >> ${UI_SRC}/.npmrc
@echo "@cloudogu:registry=${NPM_REGISTRY_RC}" >> ${UI_SRC}/.npmrc