File tree Expand file tree Collapse file tree 2 files changed +27
-0
lines changed
Expand file tree Collapse file tree 2 files changed +27
-0
lines changed Original file line number Diff line number Diff line change 8383 type=raw,value=latest
8484 type=raw,value={{date 'YYYY' tz='UTC'}}-{{date 'WW' tz='UTC'}}
8585
86+ - name : Replace build tag in index.html
87+ run : |
88+ BUILD_TAG=$(date -u '+%Y-%U')
89+ sed -i "s/{{BUILD_TAG}}/$BUILD_TAG/g" index.html
90+
8691 - name : Build and push Docker image
8792 uses : docker/build-push-action@v5
8893 with :
Original file line number Diff line number Diff line change 4444 text-align : center;
4545 }
4646
47+ .build-info {
48+ background : rgba (0 , 0 , 0 , 0.3 );
49+ padding : 0.5rem 1rem ;
50+ border-radius : 15px ;
51+ margin-bottom : 2rem ;
52+ font-size : 0.9rem ;
53+ opacity : 0.8 ;
54+ border : 1px solid rgba (241 , 196 , 15 , 0.3 );
55+ }
56+
57+ .build-tag {
58+ color : # f1c40f ;
59+ font-weight : bold;
60+ }
61+
4762 .enter-btn {
4863 background : # f1c40f ;
4964 color : # 2c3e50 ;
7388 font-size : 1rem ;
7489 padding : 0.8rem 1.5rem ;
7590 }
91+ .build-info {
92+ font-size : 0.8rem ;
93+ padding : 0.4rem 0.8rem ;
94+ }
7695 }
7796 </ style >
7897</ head >
7998< body >
8099 < div class ="logo "> HiveDrop</ div >
81100 < div class ="tagline "> Your sweet file sharing solution</ div >
101+ < div class ="build-info ">
102+ Build: < span class ="build-tag "> {{BUILD_TAG}}</ span >
103+ </ div >
82104 < a href ="/honey/ " class ="enter-btn "> Enter the Hive</ a >
83105</ body >
84106</ html >
You can’t perform that action at this time.
0 commit comments