Commit 34b1d762 authored by Anthony Jacob's avatar Anthony Jacob
Browse files

remoce print of key, change job name and add forgotten variable

parent 07603e5f
Loading
Loading
Loading
Loading
+3 −2
Original line number Diff line number Diff line
@@ -35,15 +35,16 @@ publish:
    - docker push $DOCKER_IMAGE_NAME
    - echo "image successfully published."

deploy-dev:
deploy-demo:
  stage: deploy
  image: ubuntu:24.04
  variables:
    DOCKER_IMAGE_NAME: $CI_REGISTRY_IMAGE:latest
  before_script:
    - apt-get -yq update
    - apt-get -yqq install ssh
    - install -m 600 -D /dev/null ~/.ssh/id_rsa
    - echo "$SSH_KEY" | base64 -d > ~/.ssh/id_rsa
    - cat ~/.ssh/id_rsa
    - ssh-keyscan -p $SSH_PORT -H $SSH_HOST  > ~/.ssh/known_hosts
    - cat ~/.ssh/known_hosts
  script: