From 810c227b285e0426ed6a17078ae5e86e009da84d Mon Sep 17 00:00:00 2001 From: Tue Herlau <tuhe@dtu.dk> Date: Tue, 11 Oct 2022 15:00:04 +0200 Subject: [PATCH] CICD --- .gitlab-ci.yml | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index b897a87..77ec0d2 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -2,24 +2,25 @@ image: python:3.9-buster before_script: - pip install -r requirements.txt - - 'command -v ssh-agent >/dev/null || ( apt-get update -y && apt-get install openssh-client -y )' + # - 'command -v ssh-agent >/dev/null || ( apt-get update -y && apt-get install openssh-client -y )' ## ## Run ssh-agent (inside the build environment) ## - - eval $(ssh-agent -s) + # - eval $(ssh-agent -s) ## ## Add the SSH key stored in SSH_PRIVATE_KEY variable to the agent store ## We're using tr to fix line endings which makes ed25519 keys work ## without extra base64 encoding. ## https://gitlab.com/gitlab-examples/ssh-private-key/issues/1#note_48526556 ## - - echo "$SSH_PRIVATE_KEY" | tr -d '\r' | ssh-add - - + # - echo "$SSH_PRIVATE_KEY" | tr -d '\r' | ssh-add - + - echo "$client_secret" > src/unlearn/client_secret.txt + - cat src/unlearn/client_secret.txt ## ## Create the SSH directory and give it the right permissions ## - - mkdir -p ~/.ssh - - chmod 700 ~/.ssh + # - mkdir -p ~/.ssh + # - chmod 700 ~/.ssh pages: stage: deploy -- GitLab