.gitlab-ci.yml 866 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
    image: juliendehos/misomorphic:latest
    artifacts:
        untracked: true
    script:
        - nix-build nix/docker.nix
        - cp result miso-xhr.tar.gz
    only:
        - master

production:
    type: deploy
julien dehos's avatar
julien dehos committed
14
    image: docker:stable
julien dehos's avatar
julien dehos committed
15 16
    services:
        - docker:dind
julien dehos's avatar
julien dehos committed
17 18
    before-script:
        - curl https://cli-assets.heroku.com/install.sh | sh
julien dehos's avatar
julien dehos committed
19 20
    script:
        - docker load < miso-xhr.tar.gz
julien dehos's avatar
julien dehos committed
21 22 23 24 25
          #- heroku login
          #- heroku container:login
          #- docker tag miso-xhr:latest registry.heroku.com/miso-xhr/web
          #- docker push registry.heroku.com/miso-xhr/web
          #- heroku container:release web --app miso-xhr
julien dehos's avatar
julien dehos committed
26 27
        - docker images
        - docker rmi miso-xhr:latest
julien dehos's avatar
julien dehos committed
28 29 30 31 32 33 34 35
    only:
        - master

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