Skip to content
Snippets Groups Projects
Commit 8ed63037 authored by Frederic Danis's avatar Frederic Danis
Browse files

Fix upload


Current app build failed with following error:
```
$ rsync -e "ssh -oStrictHostKeyChecking=no -i $ARCHIVE_SECRET_FILE" -aP ~/.cache/flatdeb/ostree-repo/. "$upload_host:$UPLOAD_ROOT"
sending incremental file list
rsync: change_dir "/root/.cache/flatdeb/ostree-repo" failed: No such file or directory (2)
```
This commit create a temporary repo directory used by `flatpak-builder`.
Set correct rights so the repository is accessible after upload.

Signed-off-by: default avatarFrédéric Danis <frederic.danis@collabora.com>
parent 8f3468af
No related branches found
No related tags found
1 merge request!5Fix upload
Pipeline #133747 passed
......@@ -22,7 +22,9 @@ build-app:
- flatpak --if-not-exists --user remote-add --no-gpg-verify mildenhall https://images.apertis.org/public/flatpak/mildenhall
- flatpak install -y org.apertis.mildenhall.Platform org.apertis.mildenhall.Sdk
script:
- flatpak-builder --default-branch=${APERTIS_RELEASE} --force-clean build-dir flatpak-recipe.yaml
- REPODIR=$(mktemp -d repo-XXXXXX)
- chmod 755 ${REPODIR}
- flatpak-builder --repo=${REPODIR} --default-branch=${APERTIS_RELEASE} --force-clean build-dir flatpak-recipe.yaml
- |
case "$CI_COMMIT_REF_NAME" in
apertis/*)
......@@ -33,7 +35,7 @@ build-app:
;;
esac
- ssh -oStrictHostKeyChecking=no -i "$ARCHIVE_SECRET_FILE" "$upload_host" mkdir -p "$UPLOAD_ROOT"
- rsync -e "ssh -oStrictHostKeyChecking=no -i $ARCHIVE_SECRET_FILE" -aP ~/.cache/flatdeb/ostree-repo/. "$upload_host:$UPLOAD_ROOT"
- rsync -e "ssh -oStrictHostKeyChecking=no -i $ARCHIVE_SECRET_FILE" -aP ${REPODIR}/. "$upload_host:$UPLOAD_ROOT"
- ssh -oStrictHostKeyChecking=no -i "$ARCHIVE_SECRET_FILE" "$upload_host" flatpak build-update-repo "$UPLOAD_ROOT"
only:
refs:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment