Commit 92ccce9b authored by Lens0021's avatar Lens0021 🍂 Committed by Addshore
Browse files

Fix typo

parent 5756f6c6
......@@ -26,7 +26,7 @@ stages:
- release-publish
# The plan would be for this cache to be reused by all jobs.
# Caches curently end up cached per runner, per job concurrency level and per md5 of path?
# Caches currently end up cached per runner, per job concurrency level and per md5 of path?
# So there are potentially 12 caches that end up needing to be populated right now?
# https://forum.gitlab.com/t/confusion-around-ci-docker-cache-volumes-and-sharing-across-jobs-concurrency/56793
# Docker cache volumes look like this runner-<short-token>-project-<id>-concurrent-<concurrency-id>-cache-<md5-of-path>
......
......@@ -13,7 +13,7 @@ Each tagged release MUST have a section 2 heading starting at the time of releas
- Added `gitlab` command for interacting with the Wikimedia Gitlab instance.
- Added `--no-interaction` option to all commands with user prompts.
- Changed update check period from 1 day to 3 hours.
- Fixed long wait when checking for update with no intetnet.
- Fixed long wait when checking for update with no internet.
- Fixed fatals on regular update check failures.
## v0.2.1
......@@ -29,11 +29,11 @@ Each tagged release MUST have a section 2 heading starting at the time of releas
## v0.2.0
This is the second release built by CI on Gitlab, but the first that will be served to users.
From this point forward users will automatiacly update from Gitlab releases.
From this point forward users will automatically update from Gitlab releases.
- Added verbose flags to the `version` and `update` commands.
- Changed default output of the `version` command.
- Changed default output of the `update` command when no update is availible, making the output more useful.
- Changed default output of the `update` command when no update is available, making the output more useful.
- Removed `update_channel` from the configuration, the only update channel is now Gitlab.
......@@ -49,7 +49,7 @@ This is the first release built by CI on Gitlab.
* `mw dev hosts`: command added to interact with your `/etc/hosts` file if needed
* `mw dev * exec`: commands can now have environment variables passed to them. e.g. `mw dev mediawiki exec -- FOO=bar env`
* `mw dev`: ports are now checked for availibility before listening begins
* `mw dev`: ports are now checked for availability before listening begins
* `mw dev adminer`: Updated from `adminer:4.8.0` to `adminer:4` (enabling minor update)
* Fix typos
......@@ -62,7 +62,7 @@ This is the first release built by CI on Gitlab.
### [v0.1.0-dev-addshore.20210909.1](https://github.com/addshore/mwcli/releases/tag/v0.1.0-dev-addshore.20210909.1)
* `mw update`: Stop printing update success release notes twice
* `mw dev docker-compose` no longet breaks if passed no arguments
* `mw dev docker-compose` no longer breaks if passed no arguments
* `mw dev mediawiki`: Switch default MediaWiki PHP version to 7.3
* `mw dev mediawiki`: Include `php-ast` in MediaWiki container
* `mw dev mediawiki`: Output details of username, password and domain of MediaWiki site after install
......@@ -114,7 +114,7 @@ This is the first release built by CI on Gitlab.
* mwdd: Make use of a composer cache
* mwdd: Fix permissions of data and log mounts
* mwdd: Internally use maintenance/checkComposerLockUpToDate.php
* mwdd: Add exec commands for all services
* mwdd: Add exec commands for all services
### [v0.1.0-dev-addshore.20210523.2](https://github.com/addshore/mwcli/releases/tag/v0.1.0-dev-addshore.20210523.2)
......
# CI
Continious integration for this project is currently set up on a dedicated Cloud VPM machine.
Continuous integration for this project is currently set up on a dedicated Cloud VPM machine.
Currently this CI will NOT work for forks of this project, only for actual project branches.
......@@ -13,7 +13,7 @@ sudo docker system prune --force
sudo docker volume prune
```
If this doesn't free up enough space the next step would be to nuke the registry cotnainer and volume and recreate it!
If this doesn't free up enough space the next step would be to nuke the registry container and volume and recreate it!
## Initial Setup
......@@ -119,4 +119,4 @@ And restart the gitlab runner service:
```sh
sudo systemctl restart gitlab-runner
```
\ No newline at end of file
```
......@@ -66,7 +66,7 @@ No naming structured is enforced in CI but a convention exists that should be fo
## Releasing
Releases are automaticaly built and published by Gitlab CI after pushing a tag.
Releases are automatically built and published by Gitlab CI after pushing a tag.
Tags should follow [semver](https://semver.org/) and release notes should be written prior to tagging.
......
......@@ -41,7 +41,7 @@ func init() {
toHide := []string{
// glab does not need to be updated itself, instead mwcli would need to be updated
"check-update",
// issues will not be used on the Wikimedia gilab instance
// issues will not be used on the Wikimedia gitlab instance
"issue",
}
for _, command := range glabCommand.Commands() {
......
......@@ -203,7 +203,7 @@ var DbName string
var mwddMediawikiInstallCmd = &cobra.Command{
Use: "install",
Example: ` install --dbtype=mysql # Install a MediaWiki site in a databse called 'default' backed by MySQL
Example: ` install --dbtype=mysql # Install a MediaWiki site in a database called 'default' backed by MySQL
install --dbname=enwiki --dbtype=mysql # Install a MediaWiki site in a databse called 'enwiki' backed by MySQL
install --dbname=thirdwiki --dbtype=postgres # Install a MediaWiki site in a databse called 'thirdwiki' backed by Postgres`,
Short: "Installs a new MediaWiki site using install.php & update.php",
......
......@@ -38,7 +38,7 @@ func CanUpdateFromGitlab(version string, gitSummary string, verboseOutput bool)
}
newVersion, newErr := semver.Parse(strings.Trim(latestRelease.TagName, "v"))
currentVerion, currentErr := semver.Parse(strings.Trim(version, "v"))
currentVersion, currentErr := semver.Parse(strings.Trim(version, "v"))
if newErr != nil {
return false, "Could not parse latest release version from Gitlab"
......@@ -47,7 +47,7 @@ func CanUpdateFromGitlab(version string, gitSummary string, verboseOutput bool)
return false, "Could not parse current version '" + version + "'. Next release would be " + newVersion.String()
}
return currentVerion.Compare(newVersion) == -1, newVersion.String()
return currentVersion.Compare(newVersion) == -1, newVersion.String()
}
/*UpdateFromGitlab ...*/
......@@ -80,5 +80,5 @@ func UpdateFromGitlab(currentVersion string, gitSummary string, verboseOutput bo
return false, "Binary update failed" + err.Error()
}
return true, "Successfuly updated to version " + release.TagName + "\n\n" + release.Description
return true, "Successfully updated to version " + release.TagName + "\n\n" + release.Description
}
......@@ -27,7 +27,7 @@ func CanUpdate(currentVersion string, gitSummary string, verboseOutput bool) (bo
message := "No update available"
if verboseOutput {
message = message + "\nCurrent version is: " + currentVersion + "\nLatest availible is: " + release
message = message + "\nCurrent version is: " + currentVersion + "\nLatest available is: " + release
}
// When canUpdate is false, we dont have a release to get the version string of
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment