new version control txt file

pull/109/head
Hunter Long 2018-11-28 18:03:41 -08:00
parent f9ab09f3de
commit 117d0e50c5
3 changed files with 25 additions and 25 deletions

View File

@ -1,4 +1,4 @@
VERSION=0.79.91 VERSION=$(shell cat version.txt)
BINARY_NAME=statup BINARY_NAME=statup
GOPATH:=$(GOPATH) GOPATH:=$(GOPATH)
GOCMD=go GOCMD=go
@ -7,11 +7,11 @@ GOTEST=$(GOCMD) test
GOGET=$(GOCMD) get GOGET=$(GOCMD) get
GOINSTALL=$(GOCMD) install GOINSTALL=$(GOCMD) install
XGO=GOPATH=$(GOPATH) xgo -go 1.11 --dest=build XGO=GOPATH=$(GOPATH) xgo -go 1.11 --dest=build
BUILDVERSION=-ldflags "-X main.VERSION=$(VERSION) -X main.COMMIT=$(TRAVIS_COMMIT)" BUILDVERSION=-ldflags "-X main.VERSION=${VERSION} -X main.COMMIT=$(TRAVIS_COMMIT)"
RICE=$(GOPATH)/bin/rice RICE=$(GOPATH)/bin/rice
PATH:=/usr/local/bin:$(GOPATH)/bin:$(PATH) PATH:=/usr/local/bin:$(GOPATH)/bin:$(PATH)
PUBLISH_BODY='{ "request": { "branch": "master", "config": { "env": { "VERSION": "$(VERSION)", "COMMIT": "$(TRAVIS_COMMIT)" } } } }' PUBLISH_BODY='{ "request": { "branch": "master", "config": { "env": { "VERSION": "${VERSION}", "COMMIT": "$(TRAVIS_COMMIT)" } } } }'
TRAVIS_BUILD_CMD='{ "request": { "branch": "master", "message": "Compile master for Statup v$(VERSION)", "config": { "os": [ "linux" ], "language": "go", "go": [ "1.10.x" ], "go_import_path": "github.com/hunterlong/statup", "install": true, "sudo": "required", "services": [ "docker" ], "env": { "VERSION": "$(VERSION)" }, "matrix": { "allow_failures": [ { "go": "master" } ], "fast_finish": true }, "before_deploy": [ "git config --local user.name \"hunterlong\"", "git config --local user.email \"info@socialeck.com\"", "make tag" ], "deploy": [ { "provider": "releases", "api_key": "$(GH_TOKEN)", "file": [ "build/statup-osx-x64.tar.gz", "build/statup-osx-x32.tar.gz", "build/statup-linux-x64.tar.gz", "build/statup-linux-x32.tar.gz", "build/statup-linux-arm64.tar.gz", "build/statup-linux-arm7.tar.gz", "build/statup-linux-alpine.tar.gz", "build/statup-windows-x64.zip" ], "skip_cleanup": true } ], "notifications": { "email": false }, "before_script": ["gem install sass"], "script": [ "travis_wait 30 docker pull karalabe/xgo-latest", "make release" ], "after_success": [], "after_deploy": [ "make publish-dev" ] } } }' TRAVIS_BUILD_CMD='{ "request": { "branch": "master", "message": "Compile master for Statup v${VERSION}", "config": { "os": [ "linux" ], "language": "go", "go": [ "1.10.x" ], "go_import_path": "github.com/hunterlong/statup", "install": true, "sudo": "required", "services": [ "docker" ], "env": { "VERSION": "${VERSION}" }, "matrix": { "allow_failures": [ { "go": "master" } ], "fast_finish": true }, "before_deploy": [ "git config --local user.name \"hunterlong\"", "git config --local user.email \"info@socialeck.com\"", "make tag" ], "deploy": [ { "provider": "releases", "api_key": "$(GH_TOKEN)", "file": [ "build/statup-osx-x64.tar.gz", "build/statup-osx-x32.tar.gz", "build/statup-linux-x64.tar.gz", "build/statup-linux-x32.tar.gz", "build/statup-linux-arm64.tar.gz", "build/statup-linux-arm7.tar.gz", "build/statup-linux-alpine.tar.gz", "build/statup-windows-x64.zip" ], "skip_cleanup": true } ], "notifications": { "email": false }, "before_script": ["gem install sass"], "script": [ "travis_wait 30 docker pull karalabe/xgo-latest", "make release" ], "after_success": [], "after_deploy": [ "make publish-dev" ] } } }'
TEST_DIR=$(GOPATH)/src/github.com/hunterlong/statup TEST_DIR=$(GOPATH)/src/github.com/hunterlong/statup
PATH:=$(PATH) PATH:=$(PATH)
@ -129,7 +129,7 @@ build-windows: compile
# build Alpine linux binary (used in docker images) # build Alpine linux binary (used in docker images)
build-alpine: compile build-alpine: compile
$(XGO) --targets=linux/amd64 -ldflags="-X main.VERSION=$(VERSION) -X main.COMMIT=$(TRAVIS_COMMIT) -linkmode external -extldflags -static" -out alpine ./cmd $(XGO) --targets=linux/amd64 -ldflags="-X main.VERSION=${VERSION} -X main.COMMIT=$(TRAVIS_COMMIT) -linkmode external -extldflags -static" -out alpine ./cmd
# #
# Docker Makefile commands # Docker Makefile commands
@ -137,17 +137,17 @@ build-alpine: compile
# build :latest docker tag # build :latest docker tag
docker-build-latest: docker-build-latest:
docker build --build-arg VERSION=$(VERSION) -t hunterlong/statup:latest --no-cache -f Dockerfile . docker build --build-arg VERSION=${VERSION} -t hunterlong/statup:latest --no-cache -f Dockerfile .
docker tag hunterlong/statup:latest hunterlong/statup:v$(VERSION) docker tag hunterlong/statup:latest hunterlong/statup:v${VERSION}
# build :dev docker tag # build :dev docker tag
docker-build-dev: docker-build-dev:
docker build --build-arg VERSION=$(VERSION) -t hunterlong/statup:latest --no-cache -f Dockerfile . docker build --build-arg VERSION=${VERSION} -t hunterlong/statup:latest --no-cache -f Dockerfile .
docker tag hunterlong/statup:dev hunterlong/statup:dev-v$(VERSION) docker tag hunterlong/statup:dev hunterlong/statup:dev-v${VERSION}
# build Cypress UI testing :cypress docker tag # build Cypress UI testing :cypress docker tag
docker-build-cypress: clean docker-build-cypress: clean
GOPATH=$(GOPATH) xgo -out statup -go 1.10.x -ldflags "-X main.VERSION=$(VERSION) -X main.COMMIT=$(TRAVIS_COMMIT)" --targets=linux/amd64 ./cmd GOPATH=$(GOPATH) xgo -out statup -go 1.10.x -ldflags "-X main.VERSION=${VERSION} -X main.COMMIT=$(TRAVIS_COMMIT)" --targets=linux/amd64 ./cmd
docker build -t hunterlong/statup:cypress -f dev/Dockerfile-cypress . docker build -t hunterlong/statup:cypress -f dev/Dockerfile-cypress .
rm -f statup rm -f statup
@ -165,14 +165,14 @@ docker-run-cypress: docker-build-cypress
# push the :base and :base-v{VERSION} tag to Docker hub # push the :base and :base-v{VERSION} tag to Docker hub
docker-push-base: docker-push-base:
docker tag hunterlong/statup:base hunterlong/statup:base-v$(VERSION) docker tag hunterlong/statup:base hunterlong/statup:base-v${VERSION}
docker push hunterlong/statup:base docker push hunterlong/statup:base
docker push hunterlong/statup:base-v$(VERSION) docker push hunterlong/statup:base-v${VERSION}
# push the :dev tag to Docker hub # push the :dev tag to Docker hub
docker-push-dev: docker-push-dev:
docker push hunterlong/statup:dev docker push hunterlong/statup:dev
docker push hunterlong/statup:dev-v$(VERSION) docker push hunterlong/statup:dev-v${VERSION}
# push the :cypress tag to Docker hub # push the :cypress tag to Docker hub
docker-push-cypress: docker-push-cypress:
@ -181,7 +181,7 @@ docker-push-cypress:
# push the :latest tag to Docker hub # push the :latest tag to Docker hub
docker-push-latest: docker-push-latest:
docker push hunterlong/statup:latest docker push hunterlong/statup:latest
docker push hunterlong/statup:v$(VERSION) docker push hunterlong/statup:v${VERSION}
docker-run-mssql: docker-run-mssql:
docker run -e 'ACCEPT_EULA=Y' -e 'SA_PASSWORD=PaSsW0rD123' -p 1433:1433 -d microsoft/mssql-server-linux docker run -e 'ACCEPT_EULA=Y' -e 'SA_PASSWORD=PaSsW0rD123' -p 1433:1433 -d microsoft/mssql-server-linux
@ -240,7 +240,7 @@ clean:
# tag version using git # tag version using git
tag: tag:
git tag "v$(VERSION)" --force git tag "v${VERSION}" --force
# compress built binaries into tar.gz and zip formats # compress built binaries into tar.gz and zip formats
compress: compress:
@ -283,9 +283,9 @@ travis-build:
curl -H "Content-Type: application/json" --data '{"docker_tag": "latest"}' -X POST $(DOCKER) curl -H "Content-Type: application/json" --data '{"docker_tag": "latest"}' -X POST $(DOCKER)
snapcraft: snapcraft:
snapcraft --target-arch=amd64 snapcraft clean statup -s pull && snapcraft --target-arch=amd64
snapcraft --target-arch=arm64 snapcraft clean statup -s pull && snapcraft --target-arch=arm64
snapcraft --target-arch=i386 snapcraft clean statup -s pull && snapcraft --target-arch=i386
# install xgo and pull the xgo docker image # install xgo and pull the xgo docker image
xgo-install: clean xgo-install: clean

View File

@ -1,5 +1,6 @@
name: statup name: statup
version: 0.79.91 version-script: cat version.txt
version: "stable"
summary: Statup Server Monitoring with Status Page summary: Statup Server Monitoring with Status Page
description: > description: >
An easy to use Status Page for your websites and applications. An easy to use Status Page for your websites and applications.
@ -7,10 +8,6 @@ description: >
status page with tons of features for you to build an even better status page. status page with tons of features for you to build an even better status page.
This Status Page generator allows you to use MySQL, Postgres, or SQLite This Status Page generator allows you to use MySQL, Postgres, or SQLite
on multiple operating systems. on multiple operating systems.
architectures:
- amd64
- arm64
- i386
type: app type: app
confinement: strict confinement: strict
@ -19,8 +16,10 @@ grade: stable
parts: parts:
statup: statup:
plugin: dump plugin: dump
source: https://github.com/hunterlong/statup/releases/download/v$SNAPCRAFT_PROJECT_VERSION/statup-linux-x64.tar.gz source: https://github.com/hunterlong/statup/releases/download/latest/statup-linux-x64.tar.gz
apps: apps:
statup: statup:
command: statup command: statup
plugs:
- home

1
version.txt Normal file
View File

@ -0,0 +1 @@
0.79.91