Commit 4abbd33f authored by Dom Sekotill's avatar Dom Sekotill
Browse files

Add .gitlab-ci.yml

parent 88c83ed0
Loading
Loading
Loading
Loading
+11 −0
Original line number Diff line number Diff line
FROM ubuntu:18.04

RUN apt-get update \
 && apt-get install -y \
    openssh-client
ADD known_hosts /root/.ssh/known_hosts
ADD entrypoint.sh /bin/entrypoint

ENTRYPOINT ["/bin/entrypoint"]

# vim: ft=dockerfile
+4 −0
Original line number Diff line number Diff line
#!/bin/sh
eval `ssh-agent -s`
echo "$GIT_SSH_PRIV_KEY" | ssh-add -
exec "$@"
+1 −0
Original line number Diff line number Diff line
code.kodo.org.uk ecdsa-sha2-nistp256 AAAAE2VjZHNhLXNoYTItbmlzdHAyNTYAAAAIbmlzdHAyNTYAAABBBBR60Dr8gWBOJDAvdo/R/KGuP9kta4GZgPNGR65eOjUgp4vUXpZD7g1c8j1GYzW6EVCbDCKSsMKnwGDBv+uGb/Y=

.gitlab-ci.yml

0 → 100644
+30 −0
Original line number Diff line number Diff line
stages:
  - prepare
  - process
  - cleanup

make image:
  stage: prepare
  except:
    - pushes
  image: "docker:latest"
  script: docker build -t $CI_COMMIT_SHA .gitlab-ci.d

update submodules:
  stage: process
  except:
    - pushes
  image: "$CI_COMMIT_SHA"
  script:
    - git checkout -B master origin/master
    - . "$CI_PROJECT_DIR"/.shell/funcs
    - update_repos
    - git push git@code.kodo.org.uk:dom/dotfiles.git HEAD

untag image:
  stage: cleanup
  when: always
  except:
    - pushes
  image: "docker:latest"
  script: docker image rm $CI_COMMIT_SHA || true