mirror of
https://gitlab.gnome.org/GNOME/nautilus
synced 2024-09-13 04:51:15 +00:00
gitlabci: Add stop_review job.
Split the enviroment deployment from the flatpak job. review job depends on the flatpak job, and re-exports its artifacts for now. Then it creates a review app, that shows a link to the flatpak bundle. This commit also restricts enviroment deployments for the master branch of GNOME/nautilus.
This commit is contained in:
parent
2b9b773494
commit
c2efeabf18
|
@ -1,9 +1,11 @@
|
|||
variables:
|
||||
GIT_SUBMODULE_STRATEGY: normal
|
||||
BUNDLE: "nautilus-dev.flatpak"
|
||||
|
||||
stages:
|
||||
- test
|
||||
- cross_distro
|
||||
- deploy
|
||||
|
||||
.test_template: &distro_test
|
||||
script:
|
||||
|
@ -18,7 +20,6 @@ flatpak:
|
|||
MANIFEST_PATH: "build-aux/flatpak/org.gnome.Nautilus.json"
|
||||
MESON_ARGS: "-Dprofile=development -Dtests=all"
|
||||
FLATPAK_MODULE: "nautilus"
|
||||
BUNDLE: "nautilus-dev.flatpak"
|
||||
RUNTIME_REPO: "https://sdk.gnome.org/gnome-nightly.flatpakrepo"
|
||||
DBUS_ID: "org.gnome.NautilusDevel"
|
||||
|
||||
|
@ -42,9 +43,34 @@ flatpak:
|
|||
cache:
|
||||
paths:
|
||||
- .flatpak-builder/cache
|
||||
|
||||
review:
|
||||
stage: deploy
|
||||
dependencies:
|
||||
- flatpak
|
||||
script:
|
||||
- echo "Generating flatpak deployment"
|
||||
artifacts:
|
||||
paths:
|
||||
- ${BUNDLE}
|
||||
expire_in: 2 days
|
||||
environment:
|
||||
name: review/$CI_COMMIT_REF_NAME
|
||||
url: https://gitlab.gnome.org/$CI_PROJECT_PATH/-/jobs/$CI_JOB_ID/artifacts/raw/${BUNDLE}
|
||||
on_stop: stop_review
|
||||
except:
|
||||
- master@GNOME/nautilus
|
||||
|
||||
stop_review:
|
||||
stage: deploy
|
||||
script:
|
||||
- echo "Stopping flatpak deployment"
|
||||
when: manual
|
||||
environment:
|
||||
name: review/$CI_COMMIT_REF_NAME
|
||||
action: stop
|
||||
except:
|
||||
- master@GNOME/nautilus
|
||||
|
||||
fedora:rawhide:
|
||||
image: fedora:rawhide
|
||||
|
|
Loading…
Reference in a new issue