ソースを参照

Added release scripts for building local Docker images and pushing them to Quay.io and Docker Hub.

Thanks to xet7 !
Lauri Ojansivu 3 年 前
コミット
49c4dd8b14
3 ファイル変更60 行追加0 行削除
  1. 10 0
      releases/docker-build.sh
  2. 25 0
      releases/docker-push-gantt.sh
  3. 25 0
      releases/docker-push-wekan.sh

+ 10 - 0
releases/docker-build.sh

@@ -0,0 +1,10 @@
+#!/bin/bash
+
+# Build Docker images locally, because builds at Quay.io and Docker Hub usually fail.
+#
+# To be done at ~/repos/wekan or ~/repos/w/wekan-gantt-gpl
+#
+# After building, you see created Docker image ID, that is then
+# used with releases/docker-push-...sh scripts.
+
+docker build .

+ 25 - 0
releases/docker-push-gantt.sh

@@ -0,0 +1,25 @@
+#!/bin/bash
+
+# Push locally built docker images to Quay.io and Docker Hub.
+
+# Check that there is 2 parameters of
+# of Wekan version number:
+
+if [ $# -ne 2 ]
+  then
+    echo "Usage: ./push-docker.sh DOCKERBUILDTAG WEKANVERSION"
+    echo "Example: ./push-docker.sh 12345 5.70"
+    exit 1
+fi
+
+docker tag $1 quay.io/wekan/wekan-gantt-gpl:v$2
+docker push quay.io/wekan/wekan-gantt-gpl:v$2
+
+docker tag $1 quay.io/wekan/wekan-gantt-gpl:latest
+docker push quay.io/wekan/wekan-gantt-gpl:latest
+
+docker tag $1 wekanteam/wekan-gantt-gpl:v$2
+docker push wekanteam/wekan-gantt-gpl:v$2
+
+docker tag $1 wekanteam/wekan-gantt-gpl:latest
+docker push wekanteam/wekan-gantt-gpl:latest

+ 25 - 0
releases/docker-push-wekan.sh

@@ -0,0 +1,25 @@
+#!/bin/bash
+
+# Push locally built docker images to Quay.io and Docker Hub.
+
+# Check that there is 2 parameters of
+# of Wekan version number:
+
+if [ $# -ne 2 ]
+  then
+    echo "Usage: ./push-docker.sh DOCKERBUILDTAG WEKANVERSION"
+    echo "Example: ./push-docker.sh 12345 5.70"
+    exit 1
+fi
+
+docker tag $1 quay.io/wekan/wekan:v$2
+docker push quay.io/wekan/wekan:v$2
+
+docker tag $1 quay.io/wekan/wekan:latest
+docker push quay.io/wekan/wekan:latest
+
+docker tag $1 wekanteam/wekan:v$2
+docker push wekanteam/wekan:v$2
+
+docker tag $1 wekanteam/wekan:latest
+docker push wekanteam/wekan:latest