Skip to content

Commit aabc803

Browse files
committed
Add script to publish docker packages
1 parent 7f890ea commit aabc803

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

publish-docker.sh

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
VERSION=$(awk '/^version: / { print $2 };' < postgres-websockets.cabal)
2+
docker tag diogob/postgres-websockets:latest diogob/postgres-websockets:$VERSION
3+
docker push diogob/postgres-websockets
4+
docker push diogob/postgres-websockets:$VERSION
5+
docker tag diogob/postgres-websockets docker.pkg.github.com/diogob/postgres-websockets/postgres-websockets:$VERSION
6+
docker push docker.pkg.github.com/diogob/postgres-websockets/postgres-websockets
7+
docker tag diogob/postgres-websockets docker.pkg.github.com/diogob/postgres-websockets/postgres-websockets:latest
8+
docker push docker.pkg.github.com/diogob/postgres-websockets/postgres-websockets
9+
docker push docker.pkg.github.com/diogob/postgres-websockets/postgres-websockets:$VERSION

0 commit comments

Comments
 (0)