Using hseeberger/scala-sbt docker image

Compile project with sbt

pipeline:
  build:
    image: hseeberger/scala-sbt:11.0.1_2.12.7_1.2.6
    commands:
      - sbt clean compile

Run project tests with sbt

pipeline:
  build:
    image: hseeberger/scala-sbt:11.0.1_2.12.7_1.2.6
    commands:
      - sbt test

Package project with sbt

pipeline:
  build:
    image: hseeberger/scala-sbt:11.0.1_2.12.7_1.2.6
    commands:
      - sbt clean package

Read more about how to use sbt