Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

[WIp] Automated nightly Howl Flatpak builds #509

Open
wants to merge 16 commits into
base: master
Choose a base branch
from
48 changes: 48 additions & 0 deletions azure-pipelines.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,48 @@
trigger:
- master

jobs:
- job: FlatpakBuild
container:
image: 'registry.gitlab.gnome.org/gnome/gnome-runtime-images/gnome:3.30'
options: --privileged

pool:
vmImage: 'Ubuntu-16.04'

steps:
- script: |
flatpak-builder --disable-rofiles-fuse --repo repo build src/io.howl.Editor.yaml
flatpak build-bundle repo howl.flatpak io.howl.Editor
displayName: Flatpak Build
- task: PublishPipelineArtifact@0
inputs:
artifactName: 'Flatpak bundle'
targetPath: 'howl.flatpak'

- job: FlatpakRepoDeploy
dependsOn: FlatpakBuild
condition: eq(variables['Build.Reason'], 'Schedule')
container:
image: 'quay.io/refi64/gcloud-flatpak'

pool:
vmImage: 'Ubuntu-16.04'

steps:
- task: DownloadPipelineArtifact@0
inputs:
artifactName: 'Flatpak bundle'
targetPath: $(System.DefaultWorkingDirectory)
- task: DownloadSecureFile@1
inputs:
secureFile: gc-account.json
- script: |
gcloud auth activate-service-account --key-file $DOWNLOADSECUREFILE_SECUREFILEPATH
gsutil -m cp -r gs://howl-dl/repo .
ostree init --repo=repo --mode=archive
flatpak build-import-bundle repo howl.flatpak
flatpak build-sign repo
flatpak build-update-repo --generate-static-deltas --prune --prune-depth=2 repo
gsutil -m cp -r repo gs://howl-dl/
displayName: 'Push to Google Cloud Storage'
2 changes: 1 addition & 1 deletion src/io.howl.Editor.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
app-id: io.howl.Editor
runtime: org.gnome.Platform
runtime-version: '3.30'
runtime-version: '3.32'
sdk: org.gnome.Sdk
command: howl
rename-appdata-file: howl.appdata.xml
Expand Down