Logo
Explore Help
Sign In
iSharkFly-Docs/angular-docs-cn
1
0
Fork 0
You've already forked angular-docs-cn
Code Issues Pull Requests Actions Packages Projects Releases Wiki Activity
angular-docs-cn/aio/aio-builds-setup/dockerbuild/scripts-sh/clean-up.sh

10 lines
279 B
Bash
Raw Permalink Normal View History

ci(aio): add initial implementation for aio-builds setup
2017-02-06 20:40:28 +02:00
#!/bin/bash
refactor(aio): enable `-u` flag on preview server scripts
2017-06-20 00:30:06 +03:00
set -eu -o pipefail
ci(aio): add initial implementation for aio-builds setup
2017-02-06 20:40:28 +02:00
ci(aio): fix clean-up script on `ngbuilds.io`
2017-03-09 22:15:26 +02:00
# Set up env variables
fix(docs-infra): fix preview server periodic clean-up (#25671) Includes the following fixes: - Fix cron entry format for clean-up script. Crontabs in `/etc` should not have a user field. No idea why it used to work before, but it started giving errors recently: `/bin/sh: root: not found`. - Set required env variable in clean-up script. (Broken in cc6f36a9d.) This was producing the following error: `ERROR: Missing required environment variable 'AIO_CIRCLE_CI_TOKEN'!` - Use the correct path for downloads to be removed. (Broken in cc6f36a9d.) PR Close #25671
2018-09-15 15:31:39 +03:00
export AIO_CIRCLE_CI_TOKEN=UNUSED_CIRCLE_CI_TOKEN
ci(aio): fix clean-up script on `ngbuilds.io`
2017-03-09 22:15:26 +02:00
export AIO_GITHUB_TOKEN=$(head -c -1 /aio-secrets/GITHUB_TOKEN 2>/dev/null)
# Run the clean-up
ci(aio): add initial implementation for aio-builds setup
2017-02-06 20:40:28 +02:00
node $AIO_SCRIPTS_JS_DIR/dist/lib/clean-up >> /var/log/aio/clean-up.log 2>&1
Reference in New Issue Copy Permalink
Powered by Gitea Version: 1.23.8 Page: 123ms Template: 3ms
English
Bahasa Indonesia Deutsch English Español Français Gaeilge Italiano Latviešu Magyar nyelv Nederlands Polski Português de Portugal Português do Brasil Suomi Svenska Türkçe Čeština Ελληνικά Български Русский Українська فارسی മലയാളം 日本語 简体中文 繁體中文(台灣) 繁體中文(香港) 한국어
Licenses API