From b13d6deda89519eeb1ee1d1bfdf099a348385ae7 Mon Sep 17 00:00:00 2001 From: Jens Langhammer Date: Sun, 16 May 2021 23:14:51 +0200 Subject: [PATCH] root: explicitly set --user for codegen Signed-off-by: Jens Langhammer --- Makefile | 4 ++++ azure-pipelines.yml | 1 - 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/Makefile b/Makefile index 66737a6f4..5cb2886b9 100644 --- a/Makefile +++ b/Makefile @@ -1,5 +1,7 @@ .SHELLFLAGS += -x -e PWD = $(shell pwd) +UID = $(shell id -u) +GID = $(shell id -g) all: lint-fix lint test gen @@ -31,6 +33,7 @@ gen-build: gen-web: docker run \ --rm -v ${PWD}:/local \ + --user ${UID}:${GID} \ openapitools/openapi-generator-cli generate \ -i /local/schema.yml \ -g typescript-fetch \ @@ -41,6 +44,7 @@ gen-web: gen-outpost: docker run \ --rm -v ${PWD}:/local \ + --user ${UID}:${GID} \ openapitools/openapi-generator-cli generate \ --git-host goauthentik.io \ --git-repo-id outpost \ diff --git a/azure-pipelines.yml b/azure-pipelines.yml index a8c22ddbb..090b21af0 100644 --- a/azure-pipelines.yml +++ b/azure-pipelines.yml @@ -299,7 +299,6 @@ stages: inputs: script: | make gen-web - sudo chmod 777 -R web/api/ cd web cd api && npm i && cd .. npm i