Implemented simple automatic version insertion
This commit is contained in:
		@@ -3,9 +3,13 @@ FROM nginx:stable-alpine
 | 
			
		||||
COPY ./tools/ /usr/share/nginx/html/tools/
 | 
			
		||||
COPY ./assets/ /usr/share/nginx/html/assets/
 | 
			
		||||
COPY ./index.html /usr/share/nginx/html
 | 
			
		||||
#COPY ./logo.png /usr/share/nginx/html
 | 
			
		||||
#COPY ./styles.css /usr/share/nginx/html
 | 
			
		||||
#COPY ./common.css /usr/share/nginx/html
 | 
			
		||||
#COPY ./favicon.ico /usr/share/nginx/html
 | 
			
		||||
 | 
			
		||||
RUN mkdir -p /scripts
 | 
			
		||||
COPY insert_version.sh /scripts/
 | 
			
		||||
WORKDIR /scripts
 | 
			
		||||
 | 
			
		||||
RUN chmod +x insert_version.sh
 | 
			
		||||
RUN ./insert_version.sh
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
EXPOSE 80
 | 
			
		||||
 
 | 
			
		||||
@@ -27,7 +27,11 @@
 | 
			
		||||
                <li id="toolListRow"><a href="./tools/xsd.html" target="iframe">XSD</a></li>
 | 
			
		||||
                <li id="toolListRow"><a href="./tools/formatter.html" target="iframe">Formatter</a></li>
 | 
			
		||||
            </ul>
 | 
			
		||||
            <div id="copyright">Copyright © 2023<br><a href="http://release11.com/">Release11 Sp. z. o. o.</a></div>
 | 
			
		||||
            <div id="copyright">
 | 
			
		||||
                Build: [:VERSION:]<br>
 | 
			
		||||
                Copyright © 2023<br>
 | 
			
		||||
                <a href="http://release11.com/">Release11 Sp. z. o. o.</a>
 | 
			
		||||
            </div>
 | 
			
		||||
        </div>
 | 
			
		||||
        <iframe id="frame" name="iframe" src="http://tools.zipper.release11.com:8097/" frameborder="0"></iframe>
 | 
			
		||||
    </div>
 | 
			
		||||
 
 | 
			
		||||
							
								
								
									
										5
									
								
								Frontend/insert_version.sh
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										5
									
								
								Frontend/insert_version.sh
									
									
									
									
									
										Normal file
									
								
							@@ -0,0 +1,5 @@
 | 
			
		||||
#!/bin/sh
 | 
			
		||||
 | 
			
		||||
input=$(date +%Y%m%d)
 | 
			
		||||
 | 
			
		||||
sed -i "s/\[\:VERSION\:\]/$input/g" /usr/share/nginx/html/index.html
 | 
			
		||||
		Reference in New Issue
	
	Block a user