mirror of
https://git.proxmox.com/git/fwupd
synced 2025-08-09 06:06:04 +00:00
circleci: Manage the lifecycle of the snap
* Publish master snaps to edge after build. * Publish tagged snaps to the stable channel after build.
This commit is contained in:
parent
1e47c7200b
commit
a7bd2b9cb0
@ -11,9 +11,54 @@ jobs:
|
|||||||
- run:
|
- run:
|
||||||
name: "Build Snap"
|
name: "Build Snap"
|
||||||
command: snapcraft
|
command: snapcraft
|
||||||
|
- persist_to_workspace:
|
||||||
|
root: .
|
||||||
|
paths:
|
||||||
|
- "*.snap"
|
||||||
|
|
||||||
|
publish-edge:
|
||||||
|
docker:
|
||||||
|
- image: cibuilds/snapcraft:stable
|
||||||
|
steps:
|
||||||
|
- attach_workspace:
|
||||||
|
at: .
|
||||||
|
- run:
|
||||||
|
name: "Publish to Store"
|
||||||
|
command: |
|
||||||
|
mkdir .snapcraft
|
||||||
|
echo $SNAPCRAFT_LOGIN_FILE | base64 --decode --ignore-garbage > .snapcraft/snapcraft.cfg
|
||||||
|
snapcraft push *.snap --release edge
|
||||||
|
|
||||||
|
publish-stable:
|
||||||
|
docker:
|
||||||
|
- image: cibuilds/snapcraft:stable
|
||||||
|
steps:
|
||||||
|
- attach_workspace:
|
||||||
|
at: .
|
||||||
|
- run:
|
||||||
|
name: "Publish to Store"
|
||||||
|
command: |
|
||||||
|
mkdir .snapcraft
|
||||||
|
echo $SNAPCRAFT_LOGIN_FILE | base64 --decode --ignore-garbage > .snapcraft/snapcraft.cfg
|
||||||
|
snapcraft push *.snap --release stable
|
||||||
|
|
||||||
workflows:
|
workflows:
|
||||||
version: 2
|
version: 2
|
||||||
main:
|
main:
|
||||||
jobs:
|
jobs:
|
||||||
- build
|
- build
|
||||||
|
- publish-edge:
|
||||||
|
requires:
|
||||||
|
- build
|
||||||
|
filters:
|
||||||
|
branches:
|
||||||
|
only: master
|
||||||
|
- publish-stable:
|
||||||
|
requires:
|
||||||
|
- build
|
||||||
|
filters:
|
||||||
|
branches:
|
||||||
|
ignore: /.*/
|
||||||
|
tags:
|
||||||
|
only: /^\d+\.\d+\.\d+$/
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user