Creating a new release - signavio/workflow-connector GitHub Wiki

Steps to follow to create a new release

  1. run the tests using DBs in docker containers
sudo docker run --name mysql -e MYSQL_ROOT_PASSWORD=test -p3306:3306 -d mysql:5.7
# cwd = /workflow-connector
./build/migrate-to-mysql.sh
MYSQL_DATABASE_URL="root:test@tcp(localhost:3306)/signavio?parseTime=true" go test ./... -args -db mysql
sudo docker run --name postgres -e POSTGRES_PASSWORD=test -p5432:5432 -d postgres:9-alpine postgres -c 'ssl=off'
# cwd = /workflow-connector
./build/migrate-to-postgres.sh
POSTGRES_DATABASE_URL="postgres://signavio:test@localhost/signavio?sslmode=disable" go test ./... -args -db postgres
# At the moment sdaros/oracle-12c is only locally on my dev machine
sudo docker run --name oracle-12c -p 8080:8080 -p 1521:1521 sdaros/oracle-12c
# cwd = /workflow-connector
./build/migrate-to-oracle.sh
ORACLE_DATABASE_URL="system/oracle@localhost/xe" go test ./... -args -db oracle  
  1. Create executable binaries (depending on the OS)
sudo OS=windows make all
sudo cp bin/amd64/linux/workflow-connector.exe /tmp/workflow-connector_amd64_windows_v0.2.1.exe
sudo OS=linux make all
sudo cp bin/amd64/linux/workflow-connector /tmp/workflow-connector_amd64_linux_v0.2.1
  1. Also create a zip file of the config/ directory
zip -r /tmp/config.zip config/
  1. Upload the three assets to the github release page