Skip to content

Commit 8938a58

Browse files
scripts to deploy
1 parent e6470c5 commit 8938a58

3 files changed

Lines changed: 35 additions & 5 deletions

File tree

dockers/create-release.sh

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
#!/bin/bash
2+
3+
# Change directory to the specified directory
4+
cd /tmp/dist/kratos-9.3.3/
5+
6+
# Add execute permission to all .bat files in the directory
7+
# chmod 755 *.bat
8+
9+
# Create a tgz file from the directory
10+
tar -czf ../kratos-9.3.3-linux-64.tgz *
11+

dockers/linux-releaser.dockerfile

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
FROM ubuntu
2+
3+
WORKDIR /tmp
4+
COPY create-release.sh create-release.sh
5+
RUN chmod 755 /tmp/create-release.sh
6+
7+
CMD /tmp/create-release.sh
8+
# docker build -t linux_releaser -f linux-releaser.dockerfile .
9+
# docker run -v ${PWD}/dist:/tmp/dist linux_releaser

tools/create-release.bat

Lines changed: 15 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,22 @@
11
set VERSION=9.3.3
2-
git checkout master
3-
git fetch -p
4-
git pull -p
2+
@REM git checkout master
3+
@REM git fetch -p
4+
@REM git pull -p
55
@REM set BRANCH=Release-%VERSION%
66
@REM git branch %BRANCH%
77
@REM git checkout %BRANCH%
88
cd ..
99
mkdir dist
10-
set FOLDER=dist\kratos-%VERSION%-win-64\kratos.gid
10+
set FOLDER=dist\kratos-%VERSION%
1111
mkdir %FOLDER%
12-
xcopy /s/e/y kratos.gid %FOLDER%
12+
xcopy /s/e/y/q kratos.gid %FOLDER%\kratos.gid\
13+
copy LICENSE.md %FOLDER%\kratos.gid\LICENSE.md
14+
copy README.md %FOLDER%\kratos.gid\README.md
15+
16+
set RELEASE_FILE=kratos-%VERSION%-win-64.zip
17+
del /f /q %RELEASE_FILE% 2>null
18+
powershell.exe -noprofile -command "Compress-Archive -Path '%FOLDER%\*' -DestinationPath %RELEASE_FILE%"
19+
del /f /q .\dist\%RELEASE_FILE% 2>null
20+
move %RELEASE_FILE% .\dist\%RELEASE_FILE%
21+
echo "Version created -> kratos-%VERSION%-win-64"
22+

0 commit comments

Comments
 (0)