Commit c5b49299 authored by Maxime Lefrançois's avatar Maxime Lefrançois
Browse files

test deploy

parent 8a1e0e64
Loading
Loading
Loading
Loading
+14 −14
Original line number Diff line number Diff line
@@ -16,26 +16,26 @@ build:
    paths:
      - target/saref-pipeline.jar
  only:
    - master 
    - develop-ci

deploy_website:
  stage: deploy
  script:
    - eval $(ssh-agent -s)
    - ssh-add <(echo "$PORTAL_KEY")
    - mkdir -p ~/.ssh
    - '[[ -f /.dockerenv ]] && echo -e "Host *\n\tStrictHostKeyChecking no\n\n" > ~/.ssh/config'
    - scp -P 29419 -pr target/saref-pipeline.jar saref-dev@saref.etsi.org:~/downloads/saref-pipeline.jar
  only:
    - master

# deploy_package:
# deploy_website:
#   stage: deploy
#   script:
#     - 'mvn deploy -s ci_settings.xml'
#     - eval $(ssh-agent -s)
#     - ssh-add <(echo "$PORTAL_KEY")
#     - mkdir -p ~/.ssh
#     - '[[ -f /.dockerenv ]] && echo -e "Host *\n\tStrictHostKeyChecking no\n\n" > ~/.ssh/config'
#     - scp -P 29419 -pr target/saref-pipeline.jar saref-dev@saref.etsi.org:~/downloads/saref-pipeline.jar
#   only:
#     - master

deploy_package:
  stage: deploy
  script:
    - 'mvn deploy -s ci_settings.xml'
  only:
    - develop-ci

# release_job:
#   stage: release
#   image: registry.gitlab.com/gitlab-org/release-cli:latest

ci_settings.xml

0 → 100644
+16 −0
Original line number Diff line number Diff line
<settings xmlns="http://maven.apache.org/SETTINGS/1.1.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
  xsi:schemaLocation="http://maven.apache.org/SETTINGS/1.1.0 http://maven.apache.org/xsd/settings-1.1.0.xsd">
  <servers>
    <server>
      <id>gitlab-maven</id>
      <configuration>
        <httpHeaders>
          <property>
            <name>Job-Token</name>
            <value>${CI_JOB_TOKEN}</value>
          </property>
        </httpHeaders>
      </configuration>
    </server>
  </servers>
</settings>