forked from fluxcd/flux
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsnapcraft.yaml
59 lines (56 loc) · 1.35 KB
/
snapcraft.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
name: fluxctl
version-script: |
FLUX_TAG="$(git tag -l | egrep -v '^(chart-|helm-|master-|pre-split)' | sort --version-sort | tail -n1)"
if [ "$SNAPCRAFT_PROJECT_GRADE" = "stable" ]
then
echo "$FLUX_TAG"
else
GIT_REV="$(git rev-parse --short HEAD)"
echo "$FLUX_TAG+$GIT_REV"
fi
version: git
summary: fluxctl talks to Flux and helps you deploy your code
description: |
fluxctl talks to your Flux instance and exposes all its
functionality to an easy to use command line interface.
grade: devel # must be 'stable' to release into candidate/stable channels
confinement: strict
base: core18
parts:
launcher:
source: snap/local
source-type: local
plugin: dump
organize:
'*': bin/
override-stage: |
cd $SNAPCRAFT_PART_INSTALL
chmod +x bin/fluxctl-launch
snapcraftctl stage
fluxctl:
source: .
plugin: go
go-importpath: github.com/weaveworks/flux
build-packages:
- gcc
stage:
- -bin/fluxd
- -bin/helm-operator
organize:
bin/fluxctl: bin/fluxctl.real
after: [launcher]
plugs:
kube-config:
interface: personal-files
read:
- $HOME/.kube/config
- $HOME/.minikube/client.key
- $HOME/.minikube/client.crt
- $HOME/.minikube/ca.crt
apps:
fluxctl:
command: bin/fluxctl-launch
plugs:
- kube-config
- network
- network-bind