Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 4d31bd1e authored by thilo's avatar thilo
Browse files

- added build & push to pipeline

parent c6dadde0
Loading
Loading
Loading
Loading

.gitlab-ci.yml

0 → 100644
+26 −0
Original line number Diff line number Diff line
image: docker:stable

# When using dind, it's wise to use the overlayfs driver for
# improved performance.
variables:
  DOCKER_DRIVER: overlay2

services:
- docker:dind

before_script:
- apk --update add openssh-client

build:
  only:
  - /^master/
  stage: build
  script:
  - docker build -t registry.gitlab.eelo.io:5000/eelo/lineageota .
  - docker login -u gitlab-ci-token -p $CI_BUILD_TOKEN registry.gitlab.eelo.io:5000
  - docker push registry.gitlab.eelo.io:5000/eelo/lineageota
 # - mkdir ~/.ssh && echo "${SSHPRIVKEY_TEST}" > ~/.ssh/id_rsa && chmod 700 ~/.ssh && chmod 600 ~/.ssh/*
 # - ssh -2 -o UserKnownHostsFile=/dev/null -o StrictHostKeyChecking=no root@repo.eelo.io 'docker pull registry.gitlab.eelo.io:5000/eelo/lineageota'
 # - ssh -2 -o UserKnownHostsFile=/dev/null -o StrictHostKeyChecking=no root@repo.eelo.io 'cd /mnt/docker/compose/nc/ && docker-compose up -d'
 # - ssh -2 -o UserKnownHostsFile=/dev/null -o StrictHostKeyChecking=no root@repo.eelo.io 'docker restart nginx'
 # - rm -rf ~/.ssh