fix(ci): run as root

This commit is contained in:
kolaente 2023-05-02 10:59:43 +02:00
parent 6bf5abe36e
commit dee08b36da
Signed by: konrad
GPG Key ID: F40E70337AB24C9B

View File

@ -72,8 +72,6 @@ steps:
commands:
- corepack enable && pnpm config set store-dir .cache/pnpm
- pnpm run build
- cp -r dist dist-preview
- chown 1000:1000 dist-preview -R # The preview-deploy runs as user 1000
depends_on:
- dependencies
@ -140,6 +138,7 @@ steps:
- name: deploy-preview
image: williamjackson/netlify-cli
pull: always
user: root # The rest runs as root and thus the permissions wouldn't work
environment:
NETLIFY_AUTH_TOKEN:
from_secret: netlify_auth_token
@ -148,6 +147,7 @@ steps:
GITEA_TOKEN:
from_secret: gitea_token
commands:
- cp -r dist dist-preview
# Override the default api url used for preview
- sed -i 's|http://localhost:3456|https://try.vikunja.io|g' dist-preview/index.html
- apk add --no-cache perl-utils
@ -523,6 +523,6 @@ steps:
from_secret: crowdin_key
---
kind: signature
hmac: e183bfbfd53f12886cdfd72eeecfd9579e9aaa0741c58dc6cd4b8984d93bdebc
hmac: 3e0a5820a611a0c8baf7076ccae2db9846ad2f04d57d05c232b9574ade588dfe
...