-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #104 from warrensbox/feature/add-snapcraft-yml
added snapscraft file
- Loading branch information
Showing
1 changed file
with
36 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |