Skip to content

Commit

Permalink
Add automatic releases containing prebuilt binaries for new version tags
Browse files Browse the repository at this point in the history
+ Add GitHub Actions to build, release and upload build files

+ Add install instructions to README

+ Add CHANGELOG file

* Bump version to 0.4.0

- Remove snsfrom release directory

- Remove release directory
  • Loading branch information
filippsen committed Apr 12, 2021
1 parent 509d978 commit dc46f82
Show file tree
Hide file tree
Showing 4 changed files with 99 additions and 14,010 deletions.
58 changes: 58 additions & 0 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,58 @@
# This is a basic workflow to help you get started with Actions

name: CI

# Controls when the action will run.
on:
push:
tags:
- '*'

# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:

# A workflow run is made up of one or more jobs that can run sequentially or in parallel
jobs:
# This workflow contains a single job called "build"
build:
# The type of runner that the job will run on
runs-on: ubuntu-latest

# Steps represent a sequence of tasks that will be executed as part of the job
steps:
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
- uses: actions/checkout@v2

- name: Build
id: build
run: |
curl -s https://get.space.sh | sudo sh
sh ./make.sh
cd release
echo ::set-output name=snsversion::$(sha256sum --tag sns)
cd ..
- name: Create Release
id: create_release
uses: actions/create-release@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
tag_name: ${{ github.ref }}
release_name: ${{ github.ref }}
body: |
Check the attachments below for this release's prebuilt executables:
* ${{ steps.build.outputs.snsversion }}
draft: false
prerelease: false

- name: Upload Release sns
id: upload-release-sns
uses: actions/upload-release-asset@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
upload_url: ${{ steps.create_release.outputs.upload_url }}
asset_path: ./release/sns
asset_name: sns
asset_content_type: application/x-shellscript
25 changes: 25 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
# Simplenetes - Change log

## [0.4.0 - 2021-04-12]
This version enables automatic releases containing prebuilt binaries for new version tags.

+ Emit warning when trying to generate ingress for running pods which have ingress deactivated

+ Add --version long option

+ Add --help long option

* Fix commands attempting to create missing cluster pods directory

* Set version in Spacefile.yaml instead

- Remove absolute path of keyfile when creating superuser


## [0.3.3 - 2021-04-01]

## [0.3.2 - 2021-03-31]

## [0.3.1 - 2021-03-31]

## [0.3.0 - 2021-03-29]
19 changes: 16 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@ In short: Simplenetes takes the raisins out of the cake, but it does not have ev

While Kubernetes is "true cloud computing" in the sense that it can expand your cluster with more worker machines as needed and it can request resources from the environment as needed such as persistent disk, Simplenetes doesn't go there because that is when DevOps becomes MagicOps.


## When should I use Simplenetes?

In what cases should I really consider using Simplenetes?
Expand All @@ -51,7 +52,6 @@ In which cases should I *not* use Simplenetes over Kubernetes?
6. Your boss has pointy-hair.



## Simplenetes explained

Simplenetes has three parts:
Expand All @@ -60,8 +60,21 @@ Simplenetes has three parts:
- `podc` - the pod compiler which takes yaml specs into executable standalone shell scripts managing a pod
- `simplenetesd` - the daemon which runs on each host to start and stop pods.

See the [doc/README.md](doc/README.md) for topics on HOWTOs in getting started working with Simplenets Clusters.
See the [doc/README.md](doc/README.md) for topics on HOWTOs in getting started working with Simplenetes Clusters.


## Install
`sns` is a standalone executable, written in POSIX-compliant shell script and will run anywhere there is Bash/Dash/Ash installed.

```sh
LATEST_VERSION=$(curl -L -s https://github.com/simplenetes-io/simplenetes/releases/latest)
LATEST_VERSION=$(echo $LATEST_VERSION | sed -e 's/.*tag_name\=\([^"]*\)\&.*/\1/')
wget https://github.com/simplenetes-io/simplenetes/releases/download/$LATEST_VERSION/sns
chmod +x sns
sudo mv sns /usr/local/bin
```

For further instructions, please refer to the [documentation](https://github.com/simplenetes-io/simplenetes/blob/master/doc/INSTALLING.md).

See the [doc/COMPONENTS.md](doc/COMPONENTS.md) for an overview of all components of Simplenetes and the terminology used.

Simplenetes was built by [@bashlund](https://twitter.com/bashlund) and [filippsen](https://twitter.com/mikediniz)
Loading

0 comments on commit dc46f82

Please sign in to comment.