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

Commit

Permalink
Merge branch 'release/0.10.0'
Browse files Browse the repository at this point in the history
  • Loading branch information
jasonmccallister committed Apr 23, 2020
2 parents 65fd366 + dfa2a22 commit 8d99691
Show file tree
Hide file tree
Showing 74 changed files with 1,377 additions and 1,130 deletions.
3 changes: 1 addition & 2 deletions .goreleaser.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@
# Make sure to check the documentation at http://goreleaser.com
before:
hooks:
# You may remove this if you don't use go modules.
- go mod download
builds:
- binary: nitro
Expand All @@ -18,7 +17,7 @@ builds:
archives:
-
name_template: "{{.ProjectName}}_{{.Os}}_{{.Arch}}"
id: example
id: nitro
builds:
- nitro
replacements:
Expand Down
34 changes: 32 additions & 2 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,37 @@
# Release Notes for Nitro
# Release Notes for Craft Nitro

## Unreleased

## 0.10.0 - 2020-04-23

> **Warning:** This release contains breaking changes. See the [upgrade notes](UPGRADE.md#upgrading-to-nitro-0100)
> for details.
## Added
- Added the `init` command, which initializes new machines.
- Added the `remove` command, which removes a site from a machine.

### Changed
- All machine configs are now stored saved in `~/.nitro/`.
- All commands now have an `-m` option, which can be used to specify which machine to work with. (The `-f` option
has also been removed.)
- The `apply` command now creates any new database servers that it finds in the config file.
- The `machine destroy` command has been renamed to `destroy`, and it now permanently destroys the machine (as
opposed to archiving it), and removes any hostnames added to your hosts file that point to its IP address.
- The `machine restart` command has been renamed to `restart`.
- The `machine start` command has been renamed to `start`.
- The `machine stop` command has been renamed to `stop`.
- Renamed `get.sh` to `install.sh`.

### Removed
- Removed the `machine create` command. Use the new `init` command to create new machines instead.

### Fixed
- Fixed a bug where users could get a segfault when adding a site. ([#78](https://github.com/craftcms/nitro/issues/78))
- Fixed a bug where it wasn’t possible to import databases using relative paths. ([#75](https://github.com/craftcms/nitro/issues/75))
- Fixed a bug where the `machine create` command listed MySQL 5.8 as an option.
- Fixed a bug where php-fpm wouldn’t restart after running the `xdebuf off` command.

## 0.9.3 - 2020-04-20

### Fixed
Expand Down Expand Up @@ -29,4 +59,4 @@
## 0.7.5 - 2020-04-12

### Added
- Added checksum support for `get.sh` when downloading and updating. ([#56](https://github.com/craftcms/nitro/issues/56))
- Added checksum support for `get.sh` when downloading and updating. ([#56](https://github.com/craftcms/nitro/issues/56))
20 changes: 4 additions & 16 deletions Makefile
Original file line number Diff line number Diff line change
@@ -1,23 +1,11 @@
.PHONY: install
BUDDY_EXECUTION_TAG ?= 0.8.0
MACHINE ?= nitro-global
VERSION ?= 0.8.0

build:
go build -ldflags="-s -w -X 'github.com/craftcms/nitro/internal/cmd.Version=${BUDDY_EXECUTION_TAG}'" -o nitro ./cmd/cli
go build -ldflags="-s -w -X 'github.com/craftcms/nitro/internal/cmd.Version=${VERSION}'" -o nitro ./cmd/cli
local: build
mv nitro /usr/local/bin/nitro
test:
go test ./...
demo-site:
composer create-project craftcms/craft demo-site
releaser:
goreleaser --skip-publish --rm-dist --skip-validate
integration-test: build
./nitro -f nitro.yaml machine create
composer create-project craftcms/craft demo-site
sudo ./nitro -f nitro.yaml hosts
remove-integration-test:
./nitro -f nitro.yaml machine destroy -p
rm -rf demo-site
test-version: build
./nitro version
test-version-releaser: releaser

Loading

0 comments on commit 8d99691

Please sign in to comment.