Skip to content

Commit

Permalink
feat(CI): Update repository paths
Browse files Browse the repository at this point in the history
  • Loading branch information
Salamek authored Jun 29, 2022
1 parent 7f868df commit 153a19e
Showing 1 changed file with 8 additions and 7 deletions.
15 changes: 8 additions & 7 deletions .gitlab-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ packagetest:archlinux:
script:
- pacman -Sy
- cd archlinux
- pacman -U python-cron-descriptor*.pkg.tar.xz --noconfirm
- pacman -U python-cron-descriptor*.pkg.tar.zst --noconfirm
tags:
- archlinux
dependencies:
Expand All @@ -91,12 +91,13 @@ repoupdate:
- '[[ -f /.dockerenv ]] && echo -e "Host *\n\tStrictHostKeyChecking no\n\n" > ~/.ssh/config'

script:
- ssh www-data@salamek.cz 'rm -rf /var/www/arch.salamek.cz/www/any/python-cron-descriptor*.pkg.tar.xz'
- ssh www-data@salamek.cz 'rm -rf /var/www/apt.salamek.cz/cache/python3-cron-descriptor*.deb'
- scp archlinux/python-cron-descriptor*.pkg.tar.xz www-data@salamek.cz:/var/www/arch.salamek.cz/www/any
- scp deb_dist/*.deb www-data@salamek.cz:/var/www/apt.salamek.cz/cache
- ssh www-data@salamek.cz '/var/www/arch.salamek.cz/update_repo.sh'
- ssh www-data@salamek.cz '/var/www/apt.salamek.cz/update_repo.sh'
- ssh www-data@repository 'rm -rf /var/www/repository.salamek.cz/www/arch/pub/any/python-cron-descriptor*.pkg.tar.zst'
- ssh www-data@repository 'rm -rf /var/www/repository.salamek.cz/cache/deb/pub/all/python3-cron-descriptor*.deb'
- scp archlinux/python-cron-descriptor*.pkg.tar.zst www-data@repository:/var/www/repository.salamek.cz/www/arch/pub/any
- scp deb_dist/*.deb www-data@repository:/var/www/repository.salamek.cz/cache/deb/pub/all
- ssh www-data@repository '/var/www/repository.salamek.cz/deb-pub-update.sh'
- ssh www-data@repository '/var/www/repository.salamek.cz/arch-pub-update.sh'

# PyPi update
- python3 setup.py sdist
- twine upload dist/*
Expand Down

0 comments on commit 153a19e

Please sign in to comment.