Skip to content
This repository has been archived by the owner on Feb 15, 2022. It is now read-only.

Commit

Permalink
1.0.0alpha1 (#326)
Browse files Browse the repository at this point in the history
- Renamed `cli` package to `fab`; you can now use `GO111MODULE=on go get
github.com/microsoft/fabrikate/cmd/fab@develop` to download the `fab`
binary locally
  • Loading branch information
evanlouie authored Nov 4, 2020
1 parent 9650c0e commit b70f3c3
Show file tree
Hide file tree
Showing 5 changed files with 30 additions and 11 deletions.
4 changes: 2 additions & 2 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -18,5 +18,5 @@ helm_repos
.DS_Store
.idea
.vscode
fab
fabrikate
/fab
/fabrikate
27 changes: 23 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -25,14 +25,33 @@ with the current set of applied resource manifests in your Kubernetes cluster.

## Installation

You can grab the latest releases from the
[releases page](https://github.com/microsoft/fabrikate/releases) or build the
bleeding edge from source with:
You have a couple options:

### Official Release

Grab the latest releases from the
[releases page](https://github.com/microsoft/fabrikate/releases) and place it
drop it into your `$PATH`.

### Building From Source

You have a couple options to build from source:

**Using `go get`:**

Use `go get` to build and install the bleeding edge (i.e `develop`) version into
`$GOPATH/bin`:

```bash
(cd && GO111MODULE=on go get github.com/microsoft/fabrikate/cmd/fab@develop)
```

**Cloning locally:**

```bash
git clone https://github.com/microsoft/fabrikate
cd fabrikate
go build -o fab cmd/cli/main.go
go build -o fab cmd/fab/main.go
```

## Getting Started
Expand Down
File renamed without changes.
2 changes: 1 addition & 1 deletion internal/cmd/version.go
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ var versionCmd = &cobra.Command{

// PrintVersion prints the current version of Fabrikate being used.
func PrintVersion() {
logger.Info("fab version 1.0.0-alpha0")
logger.Info("fab version 1.0.0-alpha1")
}

func init() {
Expand Down
8 changes: 4 additions & 4 deletions scripts/build
Original file line number Diff line number Diff line change
Expand Up @@ -43,8 +43,8 @@ if [ $1 == "build" ]; then
# build fabrikate
if [ $2 == "fab" ]; then
get-deps
echo "go build -o fab cmd/cli/main.go"
go build -o fab cmd/cli/main.go
echo "go build -o fab cmd/fab/main.go"
go build -o fab cmd/fab/main.go
echo "finished building fab"
fi

Expand All @@ -61,11 +61,11 @@ if [ $1 == "build" ]; then
mkdir -p releases/$3

echo "Building for Mac"
GOOS=darwin GOARCH=amd64 go build -o fab
GOOS=darwin GOARCH=amd64 go build -o fab cmd/fab/main.go
zip releases/$3/fab-v$3-darwin-amd64.zip fab

echo "Building for Linux"
GOOS=linux GOARCH=amd64 go build -o fab
GOOS=linux GOARCH=amd64 go build -o fab cmd/fab/main.go
zip releases/$3/fab-v$3-linux-amd64.zip fab

echo "Release zip files can be found in releases/$3"
Expand Down

0 comments on commit b70f3c3

Please sign in to comment.