From bf906c9d2ea992a97d077d519a1e2c69347e2dd2 Mon Sep 17 00:00:00 2001 From: koddr Date: Wed, 5 Aug 2020 18:39:49 +0300 Subject: [PATCH 1/2] Fix env for goreleaser --- .goreleaser.yml | 2 +- Taskfile.yml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/.goreleaser.yml b/.goreleaser.yml index a7fedc2..62355d5 100644 --- a/.goreleaser.yml +++ b/.goreleaser.yml @@ -1,6 +1,6 @@ project_name: cgapp env_files: - github_token: ~/.goreleaser/github_token + github_token: /home/koddr/.goreleaser/github_token before: hooks: diff --git a/Taskfile.yml b/Taskfile.yml index b9f0ef6..cb86c17 100644 --- a/Taskfile.yml +++ b/Taskfile.yml @@ -53,7 +53,7 @@ tasks: - task: test - git tag -a {{.TAG}} -m "{{.TAG}}" - git push origin {{.TAG}} - - goreleaser --rm-dist + - sudo goreleaser --rm-dist delete-tag: desc: Delete git tag From e8c692e65f67c7f2a61246c0b32eb432907e8359 Mon Sep 17 00:00:00 2001 From: koddr Date: Wed, 5 Aug 2020 18:50:59 +0300 Subject: [PATCH 2/2] Fix npm issue for Docker image (--unsafe-perm) --- Dockerfile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Dockerfile b/Dockerfile index 919734b..5aa5219 100644 --- a/Dockerfile +++ b/Dockerfile @@ -12,7 +12,7 @@ COPY cgapp /cgapp RUN apk add --no-cache git npm # Install frontend CLIs (globally and in silent mode). -RUN npm i -g -s \ +RUN npm i -g -s --unsafe-perm \ create-react-app \ preact-cli \ @vue/cli \