Skip to content

Commit

Permalink
Test release automation (#108)
Browse files Browse the repository at this point in the history
Functionless change to test release automation

* bump version to v2.0.1
  • Loading branch information
mathew-fleisch authored Jan 6, 2023
1 parent 3d7fc7f commit 0450d2a
Show file tree
Hide file tree
Showing 5 changed files with 24 additions and 17 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/example-bashbot-github-action-gate.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ jobs:
uses: asdf-vm/actions/install@v1
with:
tool_versions: |
bashbot 2.0.0
bashbot 2.0.1
yq 4.30.6
-
name: Run Bashbot as debugging gate to job
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/example-bashbot-github-action.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ jobs:
uses: asdf-vm/actions/install@v1
with:
tool_versions: |
bashbot 2.0.0
bashbot 2.0.1
yq 4.30.6
-
name: Send Slack Message With Bashbot Binary
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/example-notify-slack.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ jobs:
name: Install Bashbot via asdf
uses: asdf-vm/actions/install@v1
with:
tool_versions: bashbot 2.0.0
tool_versions: bashbot 2.0.1
-
name: Send Slack Message With Bashbot Binary
env:
Expand Down
31 changes: 19 additions & 12 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -50,26 +50,33 @@ Note: Prior to version 2, Bashbot required a "classic app" to be configured to g
To install bashbot from the public helm repo, rather than with the source, the slack app/bot tokens are required to be saved as kubernetes secret, and local versions of the config.yaml and .tool-versions file.

```bash
# Get sample-config.yaml and .tool-versions
# Define your bashbot instance and namespace names
export BOTNAME=bashbot
export NAMESPACE=bashbot
export TARGET_VERSION=v2.0.1

# Get sample-env-file, sample-config.yaml, and .tool-versions
wget https://raw.githubusercontent.com/mathew-fleisch/bashbot/main/.tool-versions -q -O ${PWD}/.tool-versions
wget https://raw.githubusercontent.com/mathew-fleisch/bashbot/main/sample-config.yaml -q -O ${PWD}/config.yaml
wget https://raw.githubusercontent.com/mathew-fleisch/bashbot/main/sample-env-file -q -O ${PWD}/.env

# Add the public helm repo
# Add the public helm repo (one time)
helm repo add bashbot https://mathew-fleisch.github.io/bashbot

# Define your bashbot instance and namespace names
export BOTNAME=bashbot
export NAMESPACE=bashbot
helm install \
--debug --wait \
# Build kubernetes secrets from .env file (don't forget to fill the .env file with your secrets)
kubectl --namespace ${NAMESPACE} create secret generic ${BOTNAME}-env \
$(cat ${PWD}/.env | sed -e 's/export\ /--from-literal=/g' | tr '\n' ' ')

# Install a specific version of bashbot (remove --version for latest)
helm install --debug --wait \
--version=${TARGET_VERSION} \
--namespace ${NAMESPACE} \
--set namespace=${NAMESPACE} \
--set botname=${BOTNAME} \
--set-file '\.tool-versions'=${PWD}/.tool-versions \
--set-file 'config\.yaml'=${PWD}/config.yaml \
--repo https://mathew-fleisch.github.io/bashbot \
bashbot bashbot

```

### Quick Start: KinD cluster
Expand Down Expand Up @@ -178,7 +185,7 @@ test "${os}" == "darwin" && xattr -d com.apple.quarantine /usr/local/bin/bashbot

# To verify installation run version or help commands
bashbot version
# bashbot-darwin-amd64 v2.0.0
# bashbot-darwin-amd64 v2.0.1

bashbot --help
# ____ _ ____ _
Expand Down Expand Up @@ -275,9 +282,9 @@ The [Examples](examples) directory of this repository, has many commands used in
Included in this repository two github actions are executed on git tags. The [![release](https://github.com/mathew-fleisch/bashbot/actions/workflows/release.yaml/badge.svg)](https://github.com/mathew-fleisch/bashbot/actions/workflows/release.yaml) action will build multiple go-binaries for each version (linux/amd64, linux/arm64, darwin/amd64, and darwin/arm64) and add them to a github release and will use the docker plugin, buildx, to build and push a container for amd64/arm64 to docker hub and github container registry.

```bash
# example semver bump: v2.0.0
git tag v2.0.0
git push origin v2.0.0
# example semver bump: v2.0.1
git tag v2.0.1
git push origin v2.0.1
```

On [pull requests to the main branch](.github/workflows/pr.yaml), four jobs are run on every commit:
Expand Down
4 changes: 2 additions & 2 deletions charts/bashbot/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,5 @@ apiVersion: v2
name: bashbot
description: Bashbot is a slack ChatOps tool for Infrastructure and DevOps teams.
type: application
version: v2.0.0
appVersion: v2.0.0
version: v2.0.1
appVersion: v2.0.1

0 comments on commit 0450d2a

Please sign in to comment.