-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #120 from bots-garden/119-prepare-018
📦 release 0.1.8 in progress
- Loading branch information
Showing
18 changed files
with
288 additions
and
47 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,4 @@ | ||
github.com/bots-garden/capsule/commons v0.0.0-20220821060842-d1dc9f030021 h1:cBeILASaSUdrsImLP6wR6a747SHYBJqIwuADm2BMDO4= | ||
github.com/bots-garden/capsule/commons v0.0.0-20220821060842-d1dc9f030021/go.mod h1:5ctHSZAwy3GEi4tR9YKFTfWtBUXDcOMFHNiJYXbV61c= | ||
github.com/bots-garden/capsule/commons v0.0.0-20220903062354-1c48dd250b77 h1:CyywCzVyAuT7fHf5iHgjx0IqUvEVevtbVMwbSkS2VnA= | ||
github.com/bots-garden/capsule/commons v0.0.0-20220903062354-1c48dd250b77/go.mod h1:5ctHSZAwy3GEi4tR9YKFTfWtBUXDcOMFHNiJYXbV61c= |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,4 @@ | ||
#!/bin/bash | ||
rm ./go.sum | ||
rm ./go.mod | ||
|
||
echo "module github.com/bots-garden/capsule/capsulemodule" > go.mod | ||
echo "" >> go.mod | ||
echo "go 1.18" >> go.mod | ||
|
||
go mod tidy | ||
go get -u ./... | ||
|
||
|
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
#!/bin/bash | ||
go get -u ./... | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
package commons | ||
|
||
func CapsuleVersion() string { | ||
return "v0.1.7 🦑[squid](dev)" | ||
return "v0.1.8 🐙[octopus]" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,51 +1,77 @@ | ||
#!/bin/bash | ||
CAPSULE_VERSION="0.1.7" | ||
|
||
LAST_CAPSULE_VERSION="0.1.8" | ||
echo "System: ${OSTYPE} $(uname -m)" | ||
|
||
if [[ "$OSTYPE" == "linux-gnu"* ]]; then | ||
CAPSULE_OS="linux" | ||
elif [[ "$OSTYPE" == "darwin"* ]]; then | ||
CAPSULE_OS="darwin" | ||
else | ||
CAPSULE_OS="linux" | ||
if [[ $1 = "help" ]] | ||
then | ||
echo "usage: $0" | ||
echo "The script will detect the OS & ARCH and use the last version of capsule (${LAST_CAPSULE_VERSION})" | ||
echo "You can force the values by setting these environment variables:" | ||
echo "- CAPSULE_OS (linux, darwin)" | ||
echo "- CAPSULE_ARCH (amd64, arm64)" | ||
echo "- CAPSULE_VERSION" | ||
exit 0 | ||
fi | ||
|
||
if [[ "$(uname -m)" == "x86_64" ]]; then | ||
CAPSULE_ARCH="amd64" | ||
elif [[ "$OSTYPE" == "arm64" ]]; then | ||
CAPSULE_ARCH="arm64" | ||
else | ||
CAPSULE_ARCH="amd64" | ||
if [ -z "$CAPSULE_VERSION" ] | ||
then | ||
CAPSULE_VERSION=$LAST_CAPSULE_VERSION | ||
fi | ||
|
||
CAPSULE_ARCH=$(uname -m) | ||
if [ -z "$CAPSULE_OS" ] | ||
then | ||
if [[ "$OSTYPE" == "linux-gnu"* ]]; then | ||
CAPSULE_OS="linux" | ||
elif [[ "$OSTYPE" == "darwin"* ]]; then | ||
CAPSULE_OS="darwin" | ||
else | ||
CAPSULE_OS="linux" | ||
fi | ||
fi | ||
|
||
if [ -z "$CAPSULE_ARCH" ] | ||
then | ||
if [[ "$(uname -m)" == "x86_64" ]]; then | ||
CAPSULE_ARCH="amd64" | ||
elif [[ "$(uname -m)" == "arm64" ]]; then | ||
CAPSULE_ARCH="arm64" | ||
elif [[ $(uname -m) == "aarch64" ]]; then | ||
CAPSULE_ARCH="arm64" | ||
else | ||
CAPSULE_ARCH="amd64" | ||
fi | ||
fi | ||
|
||
|
||
echo "Installing capsule elements [${CAPSULE_VERSION}] ${CAPSULE_OS} ${CAPSULE_ARCH}" | ||
|
||
CAPSULE_MODULE="caps" | ||
echo "💊 Installing ${CAPSULE_MODULE}..." | ||
echo "Installing ${CAPSULE_MODULE}..." | ||
wget https://github.com/bots-garden/capsule/releases/download/${CAPSULE_VERSION}/${CAPSULE_MODULE}-${CAPSULE_VERSION}-${CAPSULE_OS}-${CAPSULE_ARCH}.tar.gz | ||
sudo tar -zxf ${CAPSULE_MODULE}-${CAPSULE_VERSION}-${CAPSULE_OS}-${CAPSULE_ARCH}.tar.gz --directory /usr/local/bin | ||
rm ${CAPSULE_MODULE}-${CAPSULE_VERSION}-${CAPSULE_OS}-${CAPSULE_ARCH}.tar.gz | ||
|
||
CAPSULE_MODULE="capsule" | ||
echo "💊 Installing ${CAPSULE_MODULE}..." | ||
echo "Installing ${CAPSULE_MODULE}..." | ||
wget https://github.com/bots-garden/capsule/releases/download/${CAPSULE_VERSION}/${CAPSULE_MODULE}-${CAPSULE_VERSION}-${CAPSULE_OS}-${CAPSULE_ARCH}.tar.gz | ||
sudo tar -zxf ${CAPSULE_MODULE}-${CAPSULE_VERSION}-${CAPSULE_OS}-${CAPSULE_ARCH}.tar.gz --directory /usr/local/bin | ||
rm ${CAPSULE_MODULE}-${CAPSULE_VERSION}-${CAPSULE_OS}-${CAPSULE_ARCH}.tar.gz | ||
|
||
CAPSULE_MODULE="capsule-registry" | ||
echo "💊 Installing ${CAPSULE_MODULE}..." | ||
echo "Installing ${CAPSULE_MODULE}..." | ||
wget https://github.com/bots-garden/capsule/releases/download/${CAPSULE_VERSION}/${CAPSULE_MODULE}-${CAPSULE_VERSION}-${CAPSULE_OS}-${CAPSULE_ARCH}.tar.gz | ||
sudo tar -zxf ${CAPSULE_MODULE}-${CAPSULE_VERSION}-${CAPSULE_OS}-${CAPSULE_ARCH}.tar.gz --directory /usr/local/bin | ||
rm ${CAPSULE_MODULE}-${CAPSULE_VERSION}-${CAPSULE_OS}-${CAPSULE_ARCH}.tar.gz | ||
|
||
CAPSULE_MODULE="capsule-reverse-proxy" | ||
echo "💊 Installing ${CAPSULE_MODULE}..." | ||
echo "Installing ${CAPSULE_MODULE}..." | ||
wget https://github.com/bots-garden/capsule/releases/download/${CAPSULE_VERSION}/${CAPSULE_MODULE}-${CAPSULE_VERSION}-${CAPSULE_OS}-${CAPSULE_ARCH}.tar.gz | ||
sudo tar -zxf ${CAPSULE_MODULE}-${CAPSULE_VERSION}-${CAPSULE_OS}-${CAPSULE_ARCH}.tar.gz --directory /usr/local/bin | ||
rm ${CAPSULE_MODULE}-${CAPSULE_VERSION}-${CAPSULE_OS}-${CAPSULE_ARCH}.tar.gz | ||
|
||
CAPSULE_MODULE="capsule-worker" | ||
echo "💊 Installing ${CAPSULE_MODULE}..." | ||
echo "Installing ${CAPSULE_MODULE}..." | ||
wget https://github.com/bots-garden/capsule/releases/download/${CAPSULE_VERSION}/${CAPSULE_MODULE}-${CAPSULE_VERSION}-${CAPSULE_OS}-${CAPSULE_ARCH}.tar.gz | ||
sudo tar -zxf ${CAPSULE_MODULE}-${CAPSULE_VERSION}-${CAPSULE_OS}-${CAPSULE_ARCH}.tar.gz --directory /usr/local/bin | ||
rm ${CAPSULE_MODULE}-${CAPSULE_VERSION}-${CAPSULE_OS}-${CAPSULE_ARCH}.tar.gz |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.