Skip to content

Commit

Permalink
Merge pull request #104 from warrensbox/feature/add-snapcraft-yml
Browse files Browse the repository at this point in the history
added snapscraft file
  • Loading branch information
warrensbox committed Sep 17, 2020
2 parents 5bc18b7 + ed1b4f1 commit 7aae449
Showing 1 changed file with 36 additions and 0 deletions.
36 changes: 36 additions & 0 deletions snapcraft.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
name: tfswitch
version: git
summary: A command line tool to switch between different versions of terraform
description: |
The `tfswitch` command line tool lets you switch between different versions of terraform(https://www.terraform.io/).
If you do not have a particular version of terraform installed, `tfswitch` will download the version you desire.
The installation is minimal and easy.
Once installed, simply select the version you require from the dropdown and start using terraform.
architectures:
- build-on: arm64
- build-on: amd64
assumes: [snapd2.45]
base: core18

grade: stable
confinement: strict

apps:
tfswitch:
command: bin/tfswitch
plugs:
- home
- network
- network-bind

parts:
tfswitch:
source: .
plugin: go
go-importpath: github.com/warrensbox/terraform-switcher
build-packages:
- gcc-multilib
go-buildtags:
- tfswitch
override-build:
go build -o ../install/bin/tfswitch

0 comments on commit 7aae449

Please sign in to comment.