Loading .gitlab-ci.d/Dockerfile 0 → 100644 +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 .gitlab-ci.d/entrypoint.sh 0 → 100755 +4 −0 Original line number Diff line number Diff line #!/bin/sh eval `ssh-agent -s` echo "$GIT_SSH_PRIV_KEY" | ssh-add - exec "$@" .gitlab-ci.d/known_hosts 0 → 100644 +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 Loading
.gitlab-ci.d/Dockerfile 0 → 100644 +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
.gitlab-ci.d/entrypoint.sh 0 → 100755 +4 −0 Original line number Diff line number Diff line #!/bin/sh eval `ssh-agent -s` echo "$GIT_SSH_PRIV_KEY" | ssh-add - exec "$@"
.gitlab-ci.d/known_hosts 0 → 100644 +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