Verified Commit 70996b9c authored by Jordan Petridis's avatar Jordan Petridis 🌱
Browse files

Use new .pre and .post predefined stages

These new stages are predefined and guaranted to exist for
every pipeline, allowing downstream pipepilines to freely
define their stages. Previously we were using default
stages, which could potentially be overwritten.

https://docs.gitlab.com/ee/ci/yaml/#pre-and-post
parent 544836ee
......@@ -2,7 +2,7 @@
# extension. Use `flatpak_ci_initiative.yml` for everything else.
.flatpak:
image: 'registry.gitlab.gnome.org/gnome/gnome-runtime-images/gnome:master'
stage: 'test'
stage: '.pre'
script:
- flatpak-builder --stop-at=${FLATPAK_MODULE} flatpak_app ${MANIFEST_PATH}
# Make sure to keep this in sync with the Flatpak manifest, all arguments
......@@ -88,7 +88,7 @@
- '.flatpak-builder/git'
.review:
stage: 'deploy'
stage: '.post'
script:
- echo "This job has been deprecated and is no longer needed!"
except:
......@@ -98,7 +98,7 @@
- 'branches'
.stop_review:
stage: 'deploy'
stage: '.post'
script:
- echo "This job has been deprecated and is no longer needed!"
except:
......@@ -109,7 +109,7 @@
.publish_nightly:
image: 'registry.gitlab.gnome.org/gnome/gnome-runtime-images/flat-manager-client'
stage: 'deploy'
stage: '.post'
script:
- BUILD_ID=$(flat-manager-client create ${FLAT_MANAGER_URL} ${FLATPAK_REPO})
- flat-manager-client push --commit --publish --wait ${BUILD_ID} repo/ || result=$?
......
.flatpak:
image: 'registry.gitlab.gnome.org/gnome/gnome-runtime-images/gnome:master'
stage: 'test'
stage: '.pre'
script:
- flatpak-builder --stop-at=${FLATPAK_MODULE} flatpak_app ${MANIFEST_PATH}
# Make sure to keep this in sync with the Flatpak manifest, all arguments
......@@ -85,7 +85,7 @@
- '.flatpak-builder/git'
.review:
stage: 'deploy'
stage: '.post'
script:
- echo "This job has been deprecated and is no longer needed!"
except:
......@@ -95,7 +95,7 @@
- 'branches'
.stop_review:
stage: 'deploy'
stage: '.post'
script:
- echo "This job has been deprecated and is no longer needed!"
except:
......@@ -106,7 +106,7 @@
.publish_nightly:
image: 'registry.gitlab.gnome.org/gnome/gnome-runtime-images/flat-manager-client'
stage: 'deploy'
stage: '.post'
script:
- BUILD_ID=$(flat-manager-client create ${FLAT_MANAGER_URL} ${FLATPAK_REPO})
- flat-manager-client push --commit --publish --wait ${BUILD_ID} repo/ || result=$?
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment