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

Setup: Store StackHead version on server #51

Merged
merged 11 commits into from
Sep 12, 2020

Conversation

saitho
Copy link
Member

@saitho saitho commented Sep 10, 2020

  • Please check if the PR fulfills these requirements
  • The commit message follows our guidelines
  • Tests for the changes have been added (for bug fixes / features)
  • Docs have been added / updated (for bug fixes / features)
  • What kind of change does this PR introduce? (Bug fix, feature, docs update, ...)

Feature

  • What is the current behavior? (You can also link to an open issue here)

No information on the version of StackHead used during server setup is stored.

  • What is the new behavior (if this is a feature change)?

When setting up a server the file /stackhead/VERSION is created, which is a copy of the VERSION file from the Ansible collection which is created before building the collection.

Before a project is deployed the StackHead version is checked. If the version on the host machine does not match the major version than deployed on the server, the process aborts with an error. E.g. it will not be possible to deploy onto a server that has been setup with StackHead 1.0.0 if the host uses 2.0.0.
In this case the server has to be re-setup with the new StackHead version.

  • Does this PR introduce a breaking change? (What changes might users need to make in their application due to this PR?)

Yes: Server has to be re-setup as the file /stackhead/VERSION needs to be created.

  • Other information:

@saitho saitho added the action/integration-test PRs with this label be integration tested label Sep 10, 2020
@saitho saitho changed the title Feature/stackhead version on setup Setup: Store StackHead version on server Sep 10, 2020
@saitho saitho force-pushed the feature/stackhead-version-on-setup branch 2 times, most recently from a36eb87 to b3d6d6b Compare September 10, 2020 11:50
@stackhead-bot stackhead-bot added deployment Something about application deployment setup Something about server setup labels Sep 10, 2020
@saitho saitho force-pushed the feature/stackhead-version-on-setup branch 2 times, most recently from a49d436 to 1c84d9e Compare September 10, 2020 13:00
@saitho saitho added action/keep-integration-stage Integration stage will not be removed after test succeeded or failed and removed action/keep-integration-stage Integration stage will not be removed after test succeeded or failed labels Sep 10, 2020
@saitho saitho force-pushed the feature/stackhead-version-on-setup branch from 25bdeb7 to 0f25c51 Compare September 12, 2020 16:23
@saitho saitho added action/integration-test PRs with this label be integration tested and removed action/integration-test PRs with this label be integration tested labels Sep 12, 2020
@saitho saitho merged commit b264cab into next Sep 12, 2020
@saitho saitho deleted the feature/stackhead-version-on-setup branch September 12, 2020 18:00
@saitho saitho added this to the v1.0.0 milestone Sep 13, 2020
@saitho saitho linked an issue Sep 13, 2020 that may be closed by this pull request
@stackhead-bot
Copy link
Contributor

🎉 This PR is included in version 1.0.0 🎉

The release is available on GitHub release

Your semantic-release bot 📦🚀

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
action/integration-test PRs with this label be integration tested deployment Something about application deployment released setup Something about server setup
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Versioning support for internal dependencies
2 participants