Skip to content

Commit 464278d

Browse files
committed
update version details
Signed-off-by: Jeeva Kandasamy <jkandasa@gmail.com>
1 parent c92e0f0 commit 464278d

File tree

7 files changed

+34
-5
lines changed

7 files changed

+34
-5
lines changed

.github/workflows/publish_container_images.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ jobs:
1818
- uses: peaceiris/actions-hugo@v2
1919
with:
2020
extended: true
21-
hugo-version: '0.86.0'
21+
hugo-version: '0.111.3'
2222

2323
- name: Login in to docker registry
2424
uses: docker/login-action@v1

config.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,7 @@ outputs:
9898

9999
params:
100100
pageVariables:
101-
version: master
101+
version: 2.0.0-devel
102102

103103
copyright: "The MyController.org Authors."
104104
# privacy_policy: "https://policies.google.com/privacy"

content/ta/_index.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
linkTitle = "MyController.org"
44
+++
55

6-
{{< blocks/cover title="MyController க்கு வரவேற்கிறோம்!" image_anchor="top" height="full" color="gray" >}}
6+
{{ < blocks/cover title="MyController க்கு வரவேற்கிறோம்!" image_anchor="top" height="full" color="gray" > }}
77
<div class="mx-auto">
88
<p class="lead mt-3" style="font-size: 150%;">
99
தமிழுக்கு மொழிபெயர்க்க தன்னார்வலர்கள் தேவை.<br>

scripts/build.sh

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,9 @@ git submodule update --init --recursive
88
# install npm dependencies
99
yarn install
1010

11+
# get version details
12+
source ./scripts/version.sh
13+
1114
# build
1215
# HUGO_ENV="production", enables google Analytics
1316
env HUGO_ENV="production" hugo -D
@@ -16,7 +19,7 @@ env HUGO_ENV="production" hugo -D
1619
REGISTRY='quay.io/mycontroller'
1720
ALT_REGISTRY='docker.io/mycontroller'
1821
IMAGE_WEBSITE="documentation"
19-
IMAGE_TAG=`git rev-parse --abbrev-ref HEAD`
22+
IMAGE_TAG=${VERSION}
2023

2124
# debug lines
2225
echo $PWD

scripts/version.sh

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
#!/bin/bash
2+
3+
# this script updateds version information
4+
5+
# version details
6+
export GIT_BRANCH=`git rev-parse --abbrev-ref HEAD`
7+
8+
# update tag, if available
9+
if [ ${GIT_BRANCH} = "HEAD" ]; then
10+
export GIT_BRANCH=`git describe --abbrev=0 --tags`
11+
fi
12+
13+
# update version number
14+
export VERSION=`echo ${GIT_BRANCH} | awk 'match($0, /([0-9]*\.[0-9]*\.[0-9]*)$/) { print substr($0, RSTART, RLENGTH) }'`
15+
if [ -z "$VERSION" ]; then
16+
# takes version from versions file and adds devel suffix with that
17+
STATIC_VERSION=`grep server= versions.txt | awk -F= '{print $2}'`
18+
BRANCH_NAME=`git describe --contains --all HEAD`
19+
export VERSION="${STATIC_VERSION}-devel"
20+
fi

themes/docsy

Submodule docsy updated 200 files

versions.txt

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
# keep the next release version
2+
server=2.0.0
3+
4+
# theme docsy version
5+
# https://github.com/google/docsy
6+
docsy=0.6.0

0 commit comments

Comments
 (0)