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

Upload runtime to images.apertis.org

parent 4470df2d
No related branches found
No related tags found
No related merge requests found
Pipeline #122286 passed
......@@ -19,6 +19,7 @@ default:
stages:
- build runtime
- upload runtime
- build app
build-runtime:
......@@ -42,6 +43,16 @@ build-runtime:
except:
- tags
upload-runtime:
image: ubuntu:16.04
stage: upload runtime
script:
- './upload.sh _build/flatdeb'
rules:
- if: '$ARCHIVE_SECRET_FILE'
when: on_success
- when: never
build-app:
variables:
GIT_STRATEGY: clone
......
#!/bin/bash
set -eux
LOCAL_PATH=$1
cd $(dirname $0)
upload_host="archive@images.apertis.org"
upload_root="/srv/images/test/flatpak"
upload_dest="$upload_host:$upload_root"
apt -y update
apt -y install rsync ssh
chmod 0400 "$ARCHIVE_SECRET_FILE"
ssh -oStrictHostKeyChecking=no -i "$ARCHIVE_SECRET_FILE" "$upload_host" mkdir -p "$upload_root"
rsync -e "ssh -oStrictHostKeyChecking=no -i $ARCHIVE_SECRET_FILE" -aP $LOCAL_PATH "$upload_dest/"
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