This repository has been archived by the owner on Aug 28, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 1
/
.gitlab-ci.yml
46 lines (40 loc) · 1.56 KB
/
.gitlab-ci.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
# See https://docs.gitlab.com/ee/ci/yaml/index.html for all available options
# This script does not include any secrets and was run on a self-hosted runner.
# You will need a GPG key, SSH key, and SSH config. These are specified in the
# other CI build files.
variables:
VERSION: "7.21.0"
before_script:
- shopt -s expand_aliases
- shopt -s localvar_inherit
- doas apt install -qq -y bash rsync podman flatpak elfutils coreutils slirp4netns rootlesskit binfmt-support fuse-overlayfs flatpak-builder qemu-user-static
- doas flatpak remote-add --if-not-exists flathub https://flathub.org/repo/flathub.flatpakrepo
- doas flatpak install --noninteractive --arch=aarch64 flathub org.electronjs.Electron2.BaseApp//22.08 org.freedesktop.Platform//22.08 org.freedesktop.Sdk//22.08 -y
- doas flatpak update -y
after_script:
- podman stop signal-desktop-$VERSION
- podman container rm signal-desktop-$VERSION
- podman image rm signal-desktop-image-$VERSION
- yes y | podman image prune
build:
stage: build
tags:
- vps
script:
- bash -c ./ci-build.sh
- cp ~/signal-desktop.deb .
- cp ~/signal-desktop_$VERSION.tar.xz .
- doas mkdir -p /opt/pakrepo
- doas chown "$USER" /opt/pakrepo
- flatpak-builder --arch=aarch64 --gpg-sign=FBEF43DC8C6BE9A7 --repo=/opt/pakrepo --force-clean .builddir flatpak.yml
artifacts:
when: always
paths:
- signal-desktop.deb
- signal-desktop_$VERSION.tar.xz
deploy:
stage: deploy
tags:
- vps
script:
- rsync -azu --delete /opt/pakrepo/ server:/var/www/htdocs/elagost.com/flatpak/repo/