Skip to content

Commit b02c2e9

Browse files
Added a way to publish images (and reference for others)
1 parent 65d40e4 commit b02c2e9

File tree

1 file changed

+15
-0
lines changed

1 file changed

+15
-0
lines changed
Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -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

Comments
 (0)