.gitlab-ci.yml 756 Bytes
Newer Older
julien dehos's avatar
julien dehos committed
1
build:
julien dehos's avatar
julien dehos committed
2
    type: build
julien dehos's avatar
julien dehos committed
3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30
    image: juliendehos/misomorphic:latest
    artifacts:
        untracked: true
    script:
        - nix-build nix/docker.nix
        - cp result miso-xhr.tar.gz
    only:
        - master

production:
    type: deploy
    image: docker:stable
    services:
        - docker:dind
    script:
        - docker load < miso-xhr.tar.gz
        #- docker login -u gitlab-ci-token -p $CI_JOB_TOKEN registry.example.com
        #- docker build -t registry.example.com/group/project/image:latest .
        #- docker push registry.example.com/group/project/image:latest
        - docker rmi juliendehos/misomorphic:latest
    only:
        - master

    # variables:
    #   DOCKER_HOST: tcp://docker:2375
    #   DOCKER_DRIVER: overlay2