mirror of
https://github.com/wekan/wekan.git
synced 2025-09-22 01:50:48 +02:00
Added release scripts for building local Docker images and pushing them to Quay.io and Docker Hub.
Thanks to xet7 !
This commit is contained in:
parent
65f0cab730
commit
49c4dd8b14
3 changed files with 60 additions and 0 deletions
10
releases/docker-build.sh
Normal file
10
releases/docker-build.sh
Normal file
|
@ -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
releases/docker-push-gantt.sh
Executable file
25
releases/docker-push-gantt.sh
Executable file
|
@ -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
releases/docker-push-wekan.sh
Executable file
25
releases/docker-push-wekan.sh
Executable file
|
@ -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
|
Loading…
Add table
Add a link
Reference in a new issue