Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/Remmina/Remmina.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorbhatman1441 <blackhat1441@protonmail.com>2024-01-05 17:33:50 +0300
committerbhatman1441 <blackhat1441@protonmail.com>2024-01-05 17:33:50 +0300
commit42b4de6b55c705a85d60ca1bc8e740b853c5c81c (patch)
tree9d3d04e2a510e136257d31cccd8f8cb24e3775c6
parent09c9d124e8ee9138e820feb98636df7c75a5632a (diff)
Use snap 22.04 image for snap ci testing with snapcraft remote-build
-rw-r--r--.gitlab-ci.yml53
1 files changed, 45 insertions, 8 deletions
diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index 6492635d5..8321e8500 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -73,16 +73,51 @@ flatpak:test:
refs:
- schedules
snap:build:
- image: ubuntu:22.04
+ image: registry.gitlab.com/remmina/remmina/snap:22.04
stage: build
script:
- - export LC_ALL=C.UTF-8
- - export LANG=C.UTF-8
- - export SNAP_ARCH=amd64
- - export SNAPCRAFT_BUILD_INFO=1
- - apt-get -y update
- - apt-get install -y git snapcraft
- - SNAPCRAFT_SETUP_CORE=1 snapcraft --destructive-mode
+ - apt-get install -y git
+ - mkdir -p ~/.local/share/snapcraft/provider/launchpad
+ - echo -en "[1]\n" > ~/.local/share/snapcraft/provider/launchpad/credentials
+ - echo -en "consumer_key = System-wide" >> ~/.local/share/snapcraft/provider/launchpad/credentials
+ - echo -en ":" >> ~/.local/share/snapcraft/provider/launchpad/credentials
+ - echo -en " Ubuntu (ubuntu)\n" >> ~/.local/share/snapcraft/provider/launchpad/credentials
+ - echo -en "consumer_secret = \n" >> ~/.local/share/snapcraft/provider/launchpad/credentials
+ - echo -en "access_token = " >> ~/.local/share/snapcraft/provider/launchpad/credentials
+ - echo -en $LAUNCHPAD_CREDENTIALS_ACCESS_TOKEN >> ~/.local/share/snapcraft/provider/launchpad/credentials
+ - echo -en "\naccess_secret = " >> ~/.local/share/snapcraft/provider/launchpad/credentials
+ - echo -en $LAUNCHPAD_CREDENTIALS_ACCESS_SECRET >> ~/.local/share/snapcraft/provider/launchpad/credentials
+ - echo -en "\n" >> ~/.local/share/snapcraft/provider/launchpad/credentials
+
+ - snapcraft remote-build --launchpad-accept-public-upload
+
+ - |
+ if ls remmina_*_amd64.snap 1> /dev/null 2>&1; then
+ echo "amd64 snap file found"
+ else
+ echo "amd64 snap file not found"
+ cat remmina_amd64.txt
+ exit 1
+ fi
+
+ - |
+ if ls remmina_*_arm64.snap 1> /dev/null 2>&1; then
+ echo "arm64 snap file found"
+ else
+ echo "arm64 snap file not found"
+ cat remmina_arm64.txt
+ exit 1
+ fi
+
+ - |
+ if ls remmina_*_armhf.snap 1> /dev/null 2>&1; then
+ echo "armhf snap file found"
+ else
+ echo "armhf snap file not found"
+ cat remmina_armhf.txt
+ exit 1
+ fi
+
- |
if [ "$CI_COMMIT_REF_NAME" = "master" ]; then
echo $SNAPCRAFT_LOGIN | base64 --decode --ignore-garbage > snapcraft.login
@@ -90,10 +125,12 @@ snap:build:
snapcraft upload remmina*.snap --release edge
snapcraft logout
fi
+ timeout: 8h 0m
allow_failure: false
artifacts:
paths:
- "./*.snap"
+ - "./remmina_*.txt"
expire_in: 10 days
only:
refs: