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 65d40e4 commit b02c2e9Copy full SHA for b02c2e9
7.2/stretch/apache/publish-image.sh
@@ -0,0 +1,15 @@
1
+#!/bin/sh
2
+
3
+image="polyverse/ps-php7.2-apache"
4
5
+echo "$(date) Obtaining current git sha for tagging the docker image"
6
+headsha=$(git rev-parse --verify HEAD)
7
8
9
+docker build -t $image:$headsha .
10
+docker push $image:$headsha
11
12
+echo "Pushing as latest tag..."
13
+docker tag $image:$headsha $image:latest
14
+docker push $image:latest
15
0 commit comments