Skip to content

Commit d2968f8

Browse files
authored
Merge pull request #10 from WatskeBart/develop
feat: ✨ Added current build tag to index.html
2 parents 547a4aa + 525a14b commit d2968f8

File tree

2 files changed

+27
-0
lines changed

2 files changed

+27
-0
lines changed

.github/workflows/main.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -83,6 +83,11 @@ jobs:
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:

index.html

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,21 @@
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;
@@ -73,12 +88,19 @@
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>

0 commit comments

Comments
 (0)