aboutsummaryrefslogtreecommitdiffstats
path: root/snap
diff options
context:
space:
mode:
authorSienna Lloyd <sienna@linux.com>2023-09-12 06:47:53 -0600
committerGitHub <noreply@github.com>2023-09-12 12:47:53 +0000
commite986265ecb633a6db1af6b8382c65b209faf0579 (patch)
tree2da60af9d06397ab9ac0d6ebdba761548960d0c2 /snap
parente33f112e01d2453f8674c05556944277bf38567b (diff)
downloadgitea-e986265ecb633a6db1af6b8382c65b209faf0579.tar.gz
gitea-e986265ecb633a6db1af6b8382c65b209faf0579.zip
update snap package (#27021)
Diffstat (limited to 'snap')
-rw-r--r--snap/snapcraft.yaml11
1 files changed, 6 insertions, 5 deletions
diff --git a/snap/snapcraft.yaml b/snap/snapcraft.yaml
index 2bd8c600cb..fa2b4a3979 100644
--- a/snap/snapcraft.yaml
+++ b/snap/snapcraft.yaml
@@ -8,7 +8,7 @@ description: |
icon: public/assets/img/logo.png
confinement: strict
-base: core18
+base: core22
adopt-info: gitea
architectures:
@@ -44,12 +44,13 @@ parts:
source: .
stage-packages: [ git, sqlite3, openssh-client ]
build-packages: [ git, libpam0g-dev, libsqlite3-dev, build-essential]
- build-snaps: [ go, node/18/stable ]
+ build-snaps: [ go/1.21/stable, node/18/stable ]
build-environment:
- LDFLAGS: ""
override-pull: |
- snapcraftctl pull
+ craftctl default
+ git config --global --add safe.directory /root/parts/gitea/src
last_committed_tag="$(git for-each-ref --sort=taggerdate --format '%(tag)' refs/tags | tail -n 1)"
last_released_tag="$(snap info gitea | awk '$1 == "latest/candidate:" { print $2 }')"
# If the latest tag from the upstream project has not been released to
@@ -61,8 +62,8 @@ parts:
version="$(git describe --always | sed -e 's/-/+git/;y/-/./')"
[ -n "$(echo $version | grep "+git")" ] && grade=devel || grade=stable
- snapcraftctl set-version "$version"
- snapcraftctl set-grade "$grade"
+ craftctl set version "$version"
+ craftctl set grade="$grade"
override-build: |
set -x