Skip to content

Commit e67e8ee

Browse files
committed
fixed ci
1 parent 7d66eb9 commit e67e8ee

File tree

3 files changed

+20
-14
lines changed

3 files changed

+20
-14
lines changed

.github/workflows/release.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,8 @@ jobs:
2828
run: |
2929
# Setup Build
3030
docker login -u publisher -p ${DOCKER_TOKEN} ghcr.io
31+
32+
./bin/create_version.sh "${GITHUB_REF##*/}"
3133
3234
# Build all containers
3335
QUTEX_VERSION=$(echo ${GITHUB_REF##*/}) docker compose -f docker-compose.yml -f docker-compose.build.yml build

bin/create_version.sh

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
#!/bin/bash
2+
3+
today=$(date +"%b %d, %Y")
4+
5+
QUTEX_RELEASE_DATE="$today"
6+
QUTEX_VERSION=$1
7+
8+
echo "
9+
Release Date: ${QUTEX_RELEASE_DATE}
10+
Version: ${QUTEX_VERSION}
11+
"
12+
if [[ -z $2 ]]; then
13+
read -p "Press enter to continue"
14+
fi;
15+
16+
echo "QUTEX_RELEASE_DATE=${QUTEX_RELEASE_DATE}
17+
QUTEX_VERSION=${QUTEX_VERSION}" > .version.env

bin/deploy_stack.sh

Lines changed: 1 addition & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -7,22 +7,9 @@ else
77
echo "Version number found: $1"
88
fi
99

10-
today=$(date +"%b %d, %Y")
11-
1210
# Deploy the docs to docs.qutexbot.com
1311
mkdocs gh-deploy
1412

15-
QUTEX_RELEASE_DATE="$today"
16-
QUTEX_VERSION=$1
17-
18-
echo "
19-
Release Date: ${QUTEX_RELEASE_DATE}
20-
Version: ${QUTEX_VERSION}
21-
"
22-
23-
read -p "Press enter to continue"
24-
25-
echo "QUTEX_RELEASE_DATE=${QUTEX_RELEASE_DATE}
26-
QUTEX_VERSION=${QUTEX_VERSION}" > .version.env
13+
./create_version.sh "$1"
2714

2815
env QUTEX_VERSION="${QUTEX_VERSION}" docker --context qutex stack deploy --with-registry-auth qutex -c docker-compose.yml

0 commit comments

Comments
 (0)