Commit 6712f6f

Eric Bower  ·  2026-10-12 22:21:20 -0400 EDT
parent 68fab64
chore: full file
1 files changed,  +10, -12
+10, -12
......@@ -51,20 +51,18 @@ while read -r old_sha new_sha ref; do
5151 log "repo=$repo type=$event_type name=$ref_name commit=$new_sha"
5252
5353 # upload_base is "host:path", e.g. pgs.sh:/private-ci/myrepo
54- # upload_host="${upload_base%%:*}"
55- # upload_dir="${upload_base#*:}/${short_sha}/"
56- # tar_path="${upload_dir}workspace.tar"
57- # log "upload: git archive $new_sha → $upload_host:$tar_path"
54+ upload_host="${upload_base%%:*}"
55+ upload_dir="${upload_base#*:}/${short_sha}/"
56+ tar_path="${upload_dir}workspace.tar"
57+ log "upload: git archive $new_sha → $upload_host:$tar_path"
5858
59- # if ! git archive "$new_sha" | ssh -T "$upload_host" "$tar_path"; then
60- # log "ERROR: upload failed" >&2
61- # continue
62- # fi
59+ if ! git archive "$new_sha" | ssh -T "$upload_host" "$tar_path"; then
60+ log "ERROR: upload failed" >&2
61+ continue
62+ fi
6363
64- # workspace="${upload_host}:${tar_path}"
65- # artifact_dest="${upload_host}:${upload_dir}"
66- workspace=""
67- artifact_dest=""
64+ workspace="${upload_host}:${tar_path}"
65+ artifact_dest="${upload_host}:${upload_dir}"
6866 job_id="$short_sha"
6967
7068 if [ "$event_type" = "git.tag" ]; then