Skip to content
Snippets Groups Projects
Verified Commit e0498f42 authored by Eliot Berriot's avatar Eliot Berriot
Browse files

Caching

parent 97b1e10b
Branches
Tags
No related merge requests found
Pipeline #4299 passed with warnings
image: ruby:2.4 image: ruby:2
# Cache gems in between builds
cache:
key: ${CI_COMMIT_REF_SLUG}
paths:
- vendor/ruby
variables:
PROJECTS: "funkwhale/funkwhale funkwhale/funkwhale.audio"
stages: stages:
- triage - triage
before_script:
- ruby -v # Print out ruby version for debugging
- bundle install gitlab-triage
dry-run:triage: dry-run:triage:
stage: triage stage: triage
script: script:
- export PROJECTS_ARRAY=($PROJECTS) - bundle exec gitlab-triage --help
- gem install gitlab-triage - bundle exec gitlab-triage --dry-run --token $API_TOKEN --source group --source-id funkwhale --host-url https://dev.funkwhale.audio
- gitlab-triage --help
- for proj in "${PROJECTS[@]}"; do echo "Triaging $proj" && gitlab-triage --dry-run --token $API_TOKEN --source projects --source-id $proj --host-url https://dev.funkwhale.audio; done
when: manual when: manual
except: except:
- schedules - schedules
...@@ -20,7 +27,6 @@ dry-run:triage: ...@@ -20,7 +27,6 @@ dry-run:triage:
run:triage: run:triage:
stage: triage stage: triage
script: script:
- gem install gitlab-triage - bundle exec gitlab-triage --token $API_TOKEN --source group --source-id funkwhale --host-url https://dev.funkwhale.audio
- gitlab-triage --dry-run --token $API_TOKEN --source projects --source-id $CI_PROJECT_PATH --host-url https://dev.funkwhale.audio
only: only:
- schedules - schedules
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment