We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e48ca8d commit ffc3df8Copy full SHA for ffc3df8
update-docker-io.sh
@@ -1,24 +1,18 @@
1
#!/bin/bash
2
3
-# Stash local changes
4
-git stash
5
-
6
# Get new tags from remote
7
git fetch --tags
8
# Get latest tag name
9
latestTag=$(git describe --tags `git rev-list --tags --max-count=1`)
10
# Checkout latest tag
11
-git checkout $latestTag
+git checkout $latestTag || exit
12
# Make docker tag
13
dockerTag=$(echo $latestTag | sed s/v/release-/)
14
# Build release
15
docker build . -t mevdschee/php-crud-api:$dockerTag
16
# Build latest
17
docker build . -t mevdschee/php-crud-api:latest
18
19
-# Apply stashed changes
20
-git stash apply
21
22
# Press enter to publish
23
echo -n Press enter to publish..; read
24
0 commit comments