]> granicus.if.org Git - graphviz/commitdiff
keep only one release in each development and stable
authorJohn Ellson <john.ellson@gmail.com>
Tue, 16 Jul 2019 20:11:08 +0000 (16:11 -0400)
committerJohn Ellson <john.ellson@gmail.com>
Tue, 16 Jul 2019 20:11:08 +0000 (16:11 -0400)
.gitlab-ci.yml

index 829d263326e2f6e35f5549a7e5719fbc27450b64..15cd7fa684060967bc43102e7c377e040635f25b 100644 (file)
@@ -135,7 +135,8 @@ deployment:
         - chmod -R o-rwx Packages
         - chmod -R g-wx Packages
         - chmod -R g+X Packages
+        - for i in Packages/*; do ssh "$DEPLOY_USER"@"$DEPLOY_HOST" rm -rf $i; done
         - scp -r Packages "$DEPLOY_USER"@"$DEPLOY_HOST"':'
-        - ssh "$DEPLOY_USER"@"$DEPLOY_HOST" 'for i in Packages/*/centos/source Packages/*/fedora/source; do createrepo $i; done'
-        - ssh "$DEPLOY_USER"@"$DEPLOY_HOST" 'for i in Packages/*/centos/os/* Packages/*/fedora/os/*; do createrepo $i; done'
-        - ssh "$DEPLOY_USER"@"$DEPLOY_HOST" 'for i in Packages/*/centos/debug/* Packages/*/fedora/debug/*; do createrepo $i; done'
+        - ssh "$DEPLOY_USER"@"$DEPLOY_HOST" 'for i in Packages/*/centos/*/source Packages/*/fedora/*/source; do createrepo $i; done'
+        - ssh "$DEPLOY_USER"@"$DEPLOY_HOST" 'for i in Packages/*/centos/*/os/* Packages/*/fedora/*/os/*; do createrepo $i; done'
+        - ssh "$DEPLOY_USER"@"$DEPLOY_HOST" 'for i in Packages/*/centos/*/debug/* Packages/*/fedora/*/debug/*; do createrepo $i; done'