Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
home:darix:apps
container-vendor-gitlab-js
vendorit-gitlab
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File vendorit-gitlab of Package container-vendor-gitlab-js
#!/bin/bash TARGET="$PWD/gitlab" mkdir -p $TARGET/ echo "Copy input files to work directory" cd /work/gitlab/ rsync -a $PWD/ $TARGET/ cd $TARGET echo "Running yarn" if yarn install --pure-lockfile --ignore-engines --production --cache-folder=$PWD/tmp/cache/ ; then echo "Cleaning up *.node files" # find -name \*.node -print -delete ; find -name \*.node -path '*obj.target*' -delete -ls echo "Compressing files" pushd workhorse go mod vendor popd for cargo in $(find node_modules -name Cargo.toml) ; do dir="$(dirname ${cargo})" pushd ${dir} cargo vendor-filterer --platform='*-unknown-linux-gnu' --platform=wasm32-wasi --platform=wasm32-unknown-unknown --all-features=true --format=dir mkdir .cargo echo -e "\n[source.crates-io]\nreplace-with = \"vendored-sources\"\n\n[source.vendored-sources]\ndirectory = \"vendor\"\n" >> .cargo/config.toml popd done ls /work/ bsdtar -cJf /work/gitlab-js-stuff.tar.xz node_modules workhorse/go.mod workhorse/go.sum workhorse/vendor/ ; else echo "yarn failed" ; exit 1 fi
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor