Skip to content

Commit

Permalink
Docker builds with tag
Browse files Browse the repository at this point in the history
  • Loading branch information
loleg committed May 9, 2023
1 parent 867b7e3 commit f7866d6
Showing 1 changed file with 10 additions and 2 deletions.
12 changes: 10 additions & 2 deletions publish-docker.sh
Original file line number Diff line number Diff line change
@@ -1,3 +1,11 @@
#!/bin/bash
# Runs a Docker build here

VER=`git describe --tags --abbrev=0`

echo Pushing to $VER ...
docker login
docker build -t loleg/dribdat:latest .
docker push loleg/dribdat:latest
docker build -t loleg/dribdat:$VER .
docker push loleg/dribdat:$VER
docker tag loleg/dribdat:$VER loleg/dribdat:latest
echo Done!

0 comments on commit f7866d6

Please sign in to comment.