taler-deployment

Deployment scripts and configuration files
Log | Files | Refs | README

upload.sh (1281B)


      1 #!/bin/bash
      2 # This file is part of TALER
      3 # (C) 2026 Taler Systems SA
      4 #
      5 # TALER is free software; you can redistribute it and/or
      6 # modify it under the terms of the GNU Affero General Public
      7 # License as published by the Free Software Foundation; either
      8 # version 3, or (at your option) any later version.
      9 #
     10 # TALER is distributed in the hope that it will be useful,
     11 # but WITHOUT ANY WARRANTY; without even the implied warranty
     12 # of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
     13 # See the GNU General Public License for more details.
     14 #
     15 # You should have received a copy of the GNU General Public
     16 # License along with TALER; see the file COPYING.  If not,
     17 # see <http://www.gnu.org/licenses/>
     18 #
     19 
     20 
     21 set -euo pipefail
     22 : "${CI_COMMIT_REF:?CI_COMMIT_REF is required}"
     23 artifact_dir="${MHD2_ARTIFACT_ROOT:-/artifacts}/libmicrohttpd2/$CI_COMMIT_REF"
     24 packages=()
     25 for arch in amd64 arm64; do
     26     manifest="$artifact_dir/$arch/packages.list"
     27     test -s "$manifest"
     28     while IFS= read -r name; do
     29         [[ "$name" != */* && "$name" == *.deb ]]
     30         package="$artifact_dir/$arch/$name"
     31         test -f "$package"
     32         packages+=("$package")
     33     done < "$manifest"
     34 done
     35 rsync -vP --port 424242 "${packages[@]}" \
     36     rsync://taler.host.internal/incoming_packages/trixie-taler-ci/