Skip to content

Commit

Permalink
fix: dynamic grade to allow to release to stable (#402)
Browse files Browse the repository at this point in the history
Signed-off-by: Sergio Schvezov <[email protected]>
  • Loading branch information
sergiusens authored Nov 4, 2023
1 parent 4da091b commit fdf832e
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions snap/snapcraft.yaml
Original file line number Diff line number Diff line change
@@ -1,13 +1,11 @@
name: rockcraft
version: git
base: core22
summary: A craft like experience to create ROCKS
description: |
Rockcraft aims to take the same primitives used in Charmcraft and Snapcraft
to create OCI images.
adopt-info: rockcraft
confinement: classic
grade: devel
license: GPL-3.0

# https://github.com/snapcore/snapcraft/issues/4187
Expand Down Expand Up @@ -73,11 +71,12 @@ parts:
version="$(python3 setup.py --version)"
${SNAP}/libexec/snapcraft/craftctl set version="$version"
[ -n "$(echo $version | grep "post")" ] && grade=devel || grade=stable
sed -i -e '1 s|^#!/.*|#!/snap/rockcraft/current/bin/python -E|' $CRAFT_PART_INSTALL/bin/craftctl
after:
- rockcraft-libs

umoci:
plugin: make
source: https://github.com/opencontainers/umoci.git
Expand Down

0 comments on commit fdf832e

Please sign in to comment.