ci: fix permissions for build artifacts
- anyone should be able to read and traverse the tree - not all the files should be executable, only scripts
This commit is contained in:
parent
90b4cf15d1
commit
e0ffb780f5
|
@ -299,6 +299,11 @@ build_docs:
|
||||||
build_front:
|
build_front:
|
||||||
stage: build
|
stage: build
|
||||||
image: node:18-alpine
|
image: node:18-alpine
|
||||||
|
variables:
|
||||||
|
# Keep the git files attributes during job setup
|
||||||
|
GIT_STRATEGY: clone
|
||||||
|
GIT_DEPTH: "5"
|
||||||
|
FF_DISABLE_UMASK_FOR_DOCKER_EXECUTOR: "true"
|
||||||
before_script:
|
before_script:
|
||||||
- apk add --no-cache jq bash coreutils python3
|
- apk add --no-cache jq bash coreutils python3
|
||||||
- cd front
|
- cd front
|
||||||
|
@ -308,9 +313,8 @@ build_front:
|
||||||
# this is to ensure we don't have any errors in the output,
|
# this is to ensure we don't have any errors in the output,
|
||||||
# cf https://dev.funkwhale.audio/funkwhale/funkwhale/issues/169
|
# cf https://dev.funkwhale.audio/funkwhale/funkwhale/issues/169
|
||||||
- yarn run build:deployment | tee /dev/stderr | (! grep -i 'ERROR in')
|
- yarn run build:deployment | tee /dev/stderr | (! grep -i 'ERROR in')
|
||||||
- chmod -R 755 dist
|
|
||||||
artifacts:
|
artifacts:
|
||||||
name: "front_${CI_COMMIT_REF_NAME}"
|
name: front_${CI_COMMIT_REF_NAME}
|
||||||
paths:
|
paths:
|
||||||
- front/dist/
|
- front/dist/
|
||||||
only:
|
only:
|
||||||
|
@ -472,17 +476,21 @@ build_api:
|
||||||
# Simply publish a zip containing api/ directory
|
# Simply publish a zip containing api/ directory
|
||||||
stage: publish
|
stage: publish
|
||||||
image: bash
|
image: bash
|
||||||
artifacts:
|
variables:
|
||||||
name: "api_${CI_COMMIT_REF_NAME}"
|
# Keep the git files attributes during job setup
|
||||||
paths:
|
GIT_STRATEGY: clone
|
||||||
- api
|
GIT_DEPTH: "5"
|
||||||
|
FF_DISABLE_UMASK_FOR_DOCKER_EXECUTOR: "true"
|
||||||
script:
|
script:
|
||||||
- rm -rf api/tests
|
- rm -rf api/tests
|
||||||
- >
|
- >
|
||||||
if [ "$CI_COMMIT_REF_NAME" == "develop" ] || [ "$CI_COMMIT_REF_NAME" == "stable" ]; then
|
if [ "$CI_COMMIT_REF_NAME" == "develop" ] || [ "$CI_COMMIT_REF_NAME" == "stable" ]; then
|
||||||
./scripts/set-api-build-metadata.sh $(echo $CI_COMMIT_SHA | cut -c 1-8);
|
./scripts/set-api-build-metadata.sh $(echo $CI_COMMIT_SHA | cut -c 1-8);
|
||||||
fi
|
fi
|
||||||
- chmod -R 750 api
|
artifacts:
|
||||||
|
name: api_${CI_COMMIT_REF_NAME}
|
||||||
|
paths:
|
||||||
|
- api
|
||||||
only:
|
only:
|
||||||
- tags@funkwhale/funkwhale
|
- tags@funkwhale/funkwhale
|
||||||
- stable@funkwhale/funkwhale
|
- stable@funkwhale/funkwhale
|
||||||
|
|
|
@ -0,0 +1 @@
|
||||||
|
Fix permissions for build artifacts
|
Loading…
Reference in New Issue