.gitlab-ci.yml 530 Bytes
Newer Older
David Blyth's avatar
David Blyth committed
1
before_script:
2 3 4 5 6
    - docker info

stages:
    - build
    - build_cleanup
David Blyth's avatar
David Blyth committed
7

David Blyth's avatar
David Blyth committed
8
build_test:
9 10 11 12 13
    stage: build
    script:
        - docker build -t argonneeic/base:$CI_COMMIT_REF_NAME --build-arg BUILD_THREADS=20 .
    except:
        - master
David Blyth's avatar
David Blyth committed
14

David Blyth's avatar
David Blyth committed
15
build_latest:
16 17 18 19 20 21 22 23 24 25 26
    stage: build
    script:
        - docker build -t argonneeic/base --build-arg BUILD_THREADS=20 .
    only:
        - master

cleanup_docker:
    stage: build_cleanup
    script:
        - docker rm $(docker ps -qa --no-trunc --filter "status=exited")
    when: on_failure