Skip to content

Commit

Permalink
Stop building snap packages (#112)
Browse files Browse the repository at this point in the history
  • Loading branch information
felicianotech committed Sep 15, 2021
1 parent 64aacae commit b716836
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 130 deletions.
73 changes: 0 additions & 73 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,22 +36,6 @@ workflows:
root: "."
paths:
- "dist"
- build-snap:
name: "Build Snap"
requires:
- gor/release
filters:
branches:
ignore: /^trunk$/
- build-snap:
name: "Build 'edge' Snap"
requires:
- gor/release
filters:
branches:
only: /^trunk$/
publish-edge: true
context: main
- test-with-images:
requires:
- gor/release
Expand Down Expand Up @@ -90,18 +74,6 @@ workflows:
paths:
- "dist"
context: main
- build-snap:
name: "Build 'stable' Snap"
requires:
- gor/release
filters:
branches:
ignore: /.*/
tags:
# Simplified SemVer regex
only: /^v\d+\.\d+\.\d+$/
publish-stable: true
context: main

jobs:
test:
Expand Down Expand Up @@ -135,51 +107,6 @@ jobs:
key: go-mod-v2-{{ checksum "go.sum" }}
paths:
- "/home/circleci/.cache/go-build"
build-snap:
parameters:
publish-edge:
type: boolean
default: false
publish-stable:
type: boolean
default: false
docker:
- image: cibuilds/snapcraft:core18
steps:
- checkout
- attach_workspace:
at: .
- run: sudo rm -r sonar
- run:
name: "Build Snaps for Each Architecture"
command: |
# Generate a version file that Snapcraft can use
dist/sonar_linux_amd64/sonar version --short > VERSION
snapcraft --target-arch=amd64 --destructive-mode
snapcraft --target-arch=armhf --destructive-mode
snapcraft --target-arch=arm64 --destructive-mode
- when:
condition: << parameters.publish-edge >>
steps:
- run:
name: "Publish to Snap Store in the Edge Channel"
command: |
# Snapcraft Tokens are valid for 1 year. This one expires August 1st, 2021
echo $SNAPCRAFT_LOGIN_FILE | base64 --decode --ignore-garbage | snapcraft login --with -
snapcraft upload --release=edge *amd64.snap
snapcraft upload --release=edge *arm64.snap
snapcraft upload --release=edge *armhf.snap
- when:
condition: << parameters.publish-stable >>
steps:
- run:
name: "Publish to Snap Store in the Stable Channel"
command: |
# Snapcraft Tokens are valid for 1 year. This one expires August 1st, 2021
echo $SNAPCRAFT_LOGIN_FILE | base64 --decode --ignore-garbage | snapcraft login --with -
snapcraft upload --release=stable *amd64.snap
snapcraft upload --release=stable *arm64.snap
snapcraft upload --release=stable *armhf.snap
test-with-images:
parameters:
image:
Expand Down
6 changes: 0 additions & 6 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,9 +1,3 @@
# Binaries
/sonar/sonar
/dist/

# Snapcraft
*.snap
/parts/
/prime/
/stage/
51 changes: 0 additions & 51 deletions snap/snapcraft.yaml

This file was deleted.

0 comments on commit b716836

Please sign in to comment.