Created
December 1, 2014 16:29
-
-
Save anoochit/9362004cdda6108b2b24 to your computer and use it in GitHub Desktop.
gitlab ci buildstep
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
git submodule update --init | |
ls -la | |
ID=dumpapp-$(date +"%Y%m%d%H%M%S") | |
echo "Start building image..." $ID | |
docker build -t index.fffee.org/$ID . | |
echo "Push image..." | |
docker push index.fffee.org/$ID | |
echo "Deploy image..." | |
docker -H tcp://index.fffee.org:2375 run -Pd index.fffee.org/$ID | |
CID=$(docker -H tcp://index.fffee.org:2375 ps -l -q) | |
docker -H tcp://index.fffee.org:2375 inspect $CID |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment