Skip to content
Snippets Groups Projects

integrate index saving into building stage for branch pipeline

1 file
+ 2
12
Compare changes
  • Side-by-side
  • Inline
+ 2
12
@@ -68,18 +68,6 @@ save:commitIndex:
- git push origin $CI_COMMIT_REF_NAME || true
- git branch -D tmpBranch || true
save:copyIndex:
image:
name: alpine/git:latest
entrypoint: [""]
stage: save
rules:
- if: $CI_COMMIT_REF_NAME
script:
# copy the index
- cp .tmp/cards.md .
# build
# ------------------------------------------------------------------------------------
@@ -101,6 +89,8 @@ build:pages:
- apt-get install -y -qq git-lfs
- gem install bundler:$BUNDLER_VERSION && bundle install
script:
# copy the index
- cp .tmp/cards.md .
# Generate the configuration for forks (will use Gitlab Pages on personal namespaces)
- |
if [ $CI_MERGE_REQUEST_ID ]; then
Loading