mirror of
https://gitlab.com/famedly/fluffychat.git
synced 2024-11-27 14:59:29 +01:00
CI: Fix Snap build
This commit is contained in:
parent
0a5270bbf7
commit
ac348910da
@ -167,39 +167,32 @@ build_linux:
|
||||
paths:
|
||||
- build/linux/release/bundle/
|
||||
|
||||
#snap:edge:
|
||||
# stage: release
|
||||
# image: "snapcore/snapcraft"
|
||||
# before_script:
|
||||
# - apt update && apt install git curl unzip clang cmake build-essential ninja-build pkg-config libgtk-3-dev libblkid-dev liblzma-dev -y
|
||||
# - git clone https://github.com/flutter/flutter.git
|
||||
# - export PATH="$PATH:`pwd`/flutter/bin"
|
||||
# variables:
|
||||
# SNAPCRAFT_LOGIN_FILE: ${SNAPCRAFT_LOGIN_FILE}
|
||||
# only:
|
||||
# - main
|
||||
# script: [./scripts/publish-snap-edge.sh]
|
||||
# needs: ["build_linux"]
|
||||
# dependencies: ["build_linux"]
|
||||
# artifacts:
|
||||
# paths:
|
||||
# - "./*.snap"
|
||||
# when: on_success
|
||||
snap:edge:
|
||||
stage: release
|
||||
image: "snapcore/snapcraft"
|
||||
variables:
|
||||
SNAPCRAFT_LOGIN_FILE: ${SNAPCRAFT_LOGIN_FILE}
|
||||
only: [main]
|
||||
script: [./scripts/publish-snap-edge.sh]
|
||||
needs: ["build_linux"]
|
||||
dependencies: ["build_linux"]
|
||||
artifacts:
|
||||
paths:
|
||||
- "./*.snap"
|
||||
when: on_success
|
||||
|
||||
#snap:publish:
|
||||
# stage: release
|
||||
# image: "snapcore/snapcraft"
|
||||
# variables:
|
||||
# SNAPCRAFT_LOGIN_FILE: ${SNAPCRAFT_LOGIN_FILE}
|
||||
# only:
|
||||
# - tags
|
||||
# script: [./scripts/publish-snap-stable.sh]
|
||||
# needs: ["build_linux"]
|
||||
# artifacts:
|
||||
# paths:
|
||||
# - "./*.snap"
|
||||
# when: on_success
|
||||
# expire_in: 1 week
|
||||
snap:publish:
|
||||
stage: release
|
||||
image: "snapcore/snapcraft"
|
||||
variables:
|
||||
SNAPCRAFT_LOGIN_FILE: ${SNAPCRAFT_LOGIN_FILE}
|
||||
only: [tags]
|
||||
script: [./scripts/publish-snap-stable.sh]
|
||||
needs: ["build_linux"]
|
||||
artifacts:
|
||||
paths:
|
||||
- "./*.snap"
|
||||
when: on_success
|
||||
|
||||
update-dependencies:
|
||||
stage: coverage
|
||||
|
@ -1,5 +1,5 @@
|
||||
#!/bin/sh -ve
|
||||
snapcraft
|
||||
snapcraft remote-build
|
||||
echo $SNAPCRAFT_LOGIN_FILE | base64 --decode --ignore-garbage > snapcraft.login
|
||||
snapcraft login --with snapcraft.login
|
||||
snapcraft push --release=edge *.snap
|
||||
|
@ -1,5 +1,5 @@
|
||||
#!/bin/sh -ve
|
||||
snapcraft
|
||||
snapcraft remote-build
|
||||
echo $SNAPCRAFT_LOGIN_FILE | base64 --decode --ignore-garbage > snapcraft.login
|
||||
snapcraft login --with snapcraft.login
|
||||
snapcraft push --release=stable *.snap
|
||||
|
@ -22,7 +22,6 @@ description: |
|
||||
|
||||
grade: stable
|
||||
confinement: strict
|
||||
icon: assets/logo.png
|
||||
|
||||
parts:
|
||||
olm:
|
||||
@ -37,7 +36,6 @@ parts:
|
||||
source: ./build/linux/release/bundle/
|
||||
stage-packages:
|
||||
- libsqlite3-dev
|
||||
#- libolm-dev # Not available in core18
|
||||
|
||||
slots:
|
||||
dbus-svc:
|
||||
|
Loading…
Reference in New Issue
Block a user