Commit 22f6a13b authored by Wohlgemuth, Jason's avatar Wohlgemuth, Jason
Browse files

ci: Use new config

parent 4ea632c9
Loading
Loading
Loading
Loading
+14 −20
Original line number Diff line number Diff line
default:
  tags:
    - cpu
  image: ubuntu
  before_script:
    - apt-get update
    - apt-get install -y curl git npm
    - curl -LO https://code.ornl.gov/api/v4/projects/16689/packages/generic/x86_64-unknown-linux-gnu/v${ACORN_VERSION}/acorn
    - chmod +x ./acorn
    - mv acorn /usr/local/bin
    - curl -LO https://github.com/errata-ai/vale/releases/download/v${VALE_VERSION}/vale_${VALE_VERSION}_Linux_64-bit.tar.gz
    - tar -xvzf vale_${VALE_VERSION}_Linux_64-bit.tar.gz -C /bin
    - acorn --version
    - vale -v

image: savannah.ornl.gov/research-enablement/bucket/runner
stages:
  - check
  - preview

before_script:
  - echo "${ACORN_VERSION}"
  - curl -L http://code.ornl.gov/api/v4/projects/16689/packages/generic/x86_64-unknown-linux-gnu/v${ACORN_VERSION}/acorn -o /usr/local/bin/acorn
  - chmod +x /usr/local/bin/acorn
  - acorn --version
default:
  tags:
    - cpu
run-check:
  stage: check
  rules:
    - if: $CI_PIPELINE_SOURCE == "merge_request_event"
  script:
    - echo "${VALE_VERSION}"
    - curl -L https://github.com/errata-ai/vale/releases/download/v${VALE_VERSION}/vale_${VALE_VERSION}_Linux_64-bit.tar.gz -o /root/vale.tar.gz
    - tar -xvzf /root/vale.tar.gz -C /bin
    - vale -v
    - acorn help
    - acorn check --commit HEAD -vvv

    - acorn check --commit HEAD
generate-pdf:
  stage: preview
  rules:
    - if: $CI_PIPELINE_SOURCE == "merge_request_event"
  script:
    - npx playwright install-deps
    - acorn export --commit HEAD --output ./export
  artifacts:
    name: PDF_EXPORT_PREVIEW
    expose_as: PDF Export Preview
    expire_in: 1 week
    paths:
      - export
 No newline at end of file