stages: - build-flatpak flatpak:master: image: registry.gitlab.gnome.org/gnome/gnome-runtime-images/gnome:master stage: build-flatpak script: - flatpak remote-add --if-not-exists flathub https://dl.flathub.org/repo/flathub.flatpakrepo - flatpak-builder --install-deps-from=flathub --stop-at=popcorntime app sh.popcorntime.PopcornTime.yml - flatpak-builder --finish-only --repo=repo app sh.popcorntime.PopcornTime.yml - flatpak build-bundle repo PopcornTime.flatpak --runtime-repo=https://dl.flathub.org/repo/flathub.flatpakrepo sh.popcorntime.PopcornTime artifacts: paths: - PopcornTime.flatpak expire_in: 2 days cache: paths: - .flatpak-builder/cache