... | ... | @@ -38,24 +38,11 @@ The main goal is to create Flatpak bundles so people can install and run them. |
|
|
1. Create a GitLab artifact to save the generated bundle for two days
|
|
|
1. Use a caching mechanism to reduce build times
|
|
|
|
|
|
To achieve all that, we will extend the previous CI file. The result will be exposed in the MR using a GitLab feature called Review Apps. Good thing is that is already handled by the template and we just need to add a "review" stage for using the Review Apps feature.
|
|
|
To achieve all that, we will extend the previous CI file. The result will be exposed in the MR. Good thing is that is already handled by the template. The bundles will be created for all builds, but exposed only in the MR gui.
|
|
|
|
|
|
The bundles will be created for all MRs, which means all branches that do not contain "gnome-*" in their names and also it won't be created for the master branch.
|
|
|
The template will create a Flatpak bundle with `flatpak build-bundle` and the runtime pointing to the value of RUNTIME_REPO variable. Once the build is done you will see a widget that exposes the artifacts of the job in the MR and that can download the generated Flatpak bundle.
|
|
|
|
|
|
Add the following to the CI file:
|
|
|
|
|
|
```yaml
|
|
|
review:
|
|
|
stage: deploy
|
|
|
dependencies:
|
|
|
- 'flatpak'
|
|
|
extends: '.review'
|
|
|
|
|
|
stop_review:
|
|
|
stage: deploy
|
|
|
extends: '.stop_review'
|
|
|
```
|
|
|
The template will create a Flatpak bundle with `flatpak build-bundle` and the runtime pointing to the value of RUNTIME_REPO variable. Once the deploy is done you will see a play button in the MR that will download the generated Flatpak bundle.
|
|
|
![Screenshot_from_2019-12-02_17-16-17](uploads/b14b70d0fc4f623d75e5490eb121a1b7/Screenshot_from_2019-12-02_17-16-17.png)
|
|
|
|
|
|
### Flatpak builds on every commit to master
|
|
|
|
... | ... | @@ -90,16 +77,6 @@ flatpak: |
|
|
APP_ID: "org.gnome.NautilusDevel"
|
|
|
extends: .flatpak
|
|
|
|
|
|
review:
|
|
|
stage: deploy
|
|
|
dependencies:
|
|
|
- 'flatpak'
|
|
|
extends: '.review'
|
|
|
|
|
|
stop_review:
|
|
|
stage: deploy
|
|
|
extends: '.stop_review'
|
|
|
|
|
|
nightly:
|
|
|
extends: '.publish_nightly'
|
|
|
dependencies:
|
... | ... | |