#/bin/bash
set -e

#和docker-compose.yml中的version一致
version=latest

# Use current directory as build context to access both wvpcode and wvp folders
docker build -f ./Dockerfile -t polaris-wvp:${version} .
docker tag polaris-wvp:${version} polaris-tian-docker.pkg.coding.net/qt/polaris/polaris-wvp:${version}
docker tag polaris-wvp:${version} polaris-tian-docker.pkg.coding.net/qt/polaris/polaris-wvp:latest