1
0
mirror of https://github.com/rancher/docs.git synced 2026-02-05 18:45:07 +01:00
Files
docs/scripts/publish
Vincent Fiduccia 2871f45954 Packaging
2018-04-20 16:43:03 -07:00

16 lines
280 B
Bash
Executable File

#!/bin/bash
# cd to app root
CWD=$(dirname $0)
if [[ `basename $(pwd)` = 'scripts' ]]; then
cd ../
else
cd `dirname $CWD`
fi
echo "Building Image..." && \
docker build -t rancher/docs:latest . && \
echo "Pushing Image..." && \
docker push rancher/docs:latest && \
echo "OK"