Skip to content

Instantly share code, notes, and snippets.

@anoochit
Created December 1, 2014 16:29
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save anoochit/9362004cdda6108b2b24 to your computer and use it in GitHub Desktop.
Save anoochit/9362004cdda6108b2b24 to your computer and use it in GitHub Desktop.
gitlab ci buildstep
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