Skip to contentSkip to conversation

remove deployment phase from CI

PATCH In review Paolo Bonzini 4 participants 4 messages Nov 18, 2021

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 remove deployment phase from CI

qemu.org is now served via a reverse proxy from qemu-project.gitlab.io; it does not need anymore the rsync step to the QEMU project's shell server. Remove it from the CI.

---
 .gitlab-ci.yml | 24 ------------------------
 1 file changed, 24 deletions(-)
.gitlab-ci.yml +0 -24
index 129b2ff..dde0ef3 100644
@@ -1,7 +1,6 @@
 
 stages:
   - build
-  - update
 
 pages:
   image: centos:8
@@ -19,26 +18,3 @@ pages:
   artifacts:
     paths:
      - public
-
-deploy:
-  image: centos:8
-  stage: update
-  needs:
-    - job: pages
-      artifacts: true
-  before_script:
-    - dnf install -y openssh-clients rsync
-    - eval $(ssh-agent -s)
-    - cat "$SSH_PRIVATE_KEY_FILE" | tr -d '\r' | ssh-add -
-    - mkdir -m700 -p ~/.ssh
-    - - '[[ -f /.dockerenv ]] && echo -e "Host *\n\tStrictHostKeyChecking no\n\n" >> ~/.ssh/config'
-  script:
-    - ssh $SSH_DEPLOY_DESTINATION "cd /var/www/qemu-project.org && mkdir new && rsync -az root/ new"
-    - rsync -avz --delete public/ $SSH_DEPLOY_DESTINATION:/var/www/qemu-project.org/new
-    - ssh $SSH_DEPLOY_DESTINATION "cd /var/www/qemu-project.org && rm -rf old && mv root old && mv new root"
-  only:
-    refs:
-      - master
-    variables:
-      - $SSH_PRIVATE_KEY_FILE
-      - $SSH_DEPLOY_DESTINATION
Signature · 1 line
2.33.1
Acked-by on v1 1/1
#1 lore raw
Quoted 39 lines · Paolo Bonzini

qemu.org is now served via a reverse proxy from qemu-project.gitlab.io; it does not need anymore the rsync step to the QEMU project's shell server. Remove it from the CI.

---
  .gitlab-ci.yml | 24 ------------------------
  1 file changed, 24 deletions(-)
.gitlab-ci.yml +0 -14
index 129b2ff..dde0ef3 100644
@@ -1,7 +1,6 @@
 
  stages:
    - build
-  - update
 
  pages:
    image: centos:8
@@ -19,26 +18,3 @@ pages:
    artifacts:
      paths:
       - public
-
-deploy:
-  image: centos:8
-  stage: update
-  needs:
-    - job: pages
-      artifacts: true
-  before_script:
-    - dnf install -y openssh-clients rsync
-    - eval $(ssh-agent -s)
-    - cat "$SSH_PRIVATE_KEY_FILE" | tr -d '\r' | ssh-add -
-    - mkdir -m700 -p ~/.ssh
-    - - '[[ -f /.dockerenv ]] && echo -e "Host *\n\tStrictHostKeyChecking no\n\n" >> ~/.ssh/config'

.gitlab-ci.yml pages: · line 44

Quoted 10 lines
.gitlab-ci.yml +0 -10
-  script:
-    - ssh $SSH_DEPLOY_DESTINATION "cd /var/www/qemu-project.org && mkdir new && rsync -az root/ new"
-    - rsync -avz --delete public/ $SSH_DEPLOY_DESTINATION:/var/www/qemu-project.org/new
-    - ssh $SSH_DEPLOY_DESTINATION "cd /var/www/qemu-project.org && rm -rf old && mv root old && mv new root"
-  only:
-    refs:
-      - master
-    variables:
-      - $SSH_PRIVATE_KEY_FILE
-      - $SSH_DEPLOY_DESTINATION
Reviewed-by on v1 1/1
#2 lore raw
In reply to Paolo Bonzini
Quoted 8 lines · Paolo Bonzini

qemu.org is now served via a reverse proxy from qemu-project.gitlab.io; it does not need anymore the rsync step to the QEMU project's shell server. Remove it from the CI.

---
 .gitlab-ci.yml | 24 ------------------------
 1 file changed, 24 deletions(-)

Regards,
Daniel

Signature · 3 lines
|: https://berrange.com      -o-    https://www.flickr.com/photos/dberrange :|
|: https://libvirt.org         -o-            https://fstop138.berrange.com :|
|: https://entangle-photo.org    -o-    https://www.instagram.com/dberrange :|