because I need to use it under windows, I try to change shel to bat, and try to change it to http://www.yolinux.com/TUTORI.. I keep reporting errors on this website, so let"s ask for some advice.
-sharp!/usr/bin/env bash
set -ex
git pull
version=$1
echo "version: $version"
export GOPATH=/Users/neo/Desktop/houseserver/gohouse:/Users/Desktop/server:$GOPATH
CGO_ENABLED=0 GOOS=linux go build -a -installsuffix cgo -o house ./src/house/main.go
docker build -t outsource/house:test -f ./docker/Dockerfile-test .
-sharp docker tag outsource/house:latest 127.0.0.1:5000/outsource/house:latest
docker tag outsource/house:test 127.0.0.1:5000/outsource/house:test
docker push 127.0.0.1:5000/outsource/house:test
-sharp docker push 127.0.0.1:5000/outsource/house:latest
-sharpdocker rmi 127.0.0.1:5000/vcloud/panoon:latest
-sharpdocker rmi 127.0.0.1:5000/vcloud/panoon:$version
docker rmi $(docker images -f "dangling=true" -q)
docker images