Skip to content

Commit 9f427f4

Browse files
authored
v5.1.15 (#134)
Minor updates * Using latest base image * Showing countdown on maintenance page Build updates * Don't sign in to GHCR
1 parent 1937e27 commit 9f427f4

File tree

5 files changed

+21
-18
lines changed

5 files changed

+21
-18
lines changed

.github/workflows/dev.yml

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -41,13 +41,6 @@ jobs:
4141
with:
4242
username: ${{ secrets.DOCKERHUB_USERNAME }}
4343
password: ${{ secrets.DOCKERHUB_TOKEN }}
44-
-
45-
name: Login to GitHub Container Registry
46-
uses: docker/login-action@v2
47-
with:
48-
registry: ghcr.io
49-
username: ${{ github.repository_owner }}
50-
password: ${{ secrets.GITHUB_TOKEN }}
5144
-
5245
name: Build and push
5346
id: docker_build

.github/workflows/publish.yml

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -46,13 +46,6 @@ jobs:
4646
with:
4747
username: ${{ secrets.DOCKERHUB_USERNAME }}
4848
password: ${{ secrets.DOCKERHUB_TOKEN }}
49-
-
50-
name: Login to GitHub Container Registry
51-
uses: docker/login-action@v2
52-
with:
53-
registry: ghcr.io
54-
username: ${{ github.repository_owner }}
55-
password: ${{ secrets.GITHUB_TOKEN }}
5649
-
5750
name: Build and push
5851
id: docker_build

Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
FROM bfren/nginx:nginx1.22-4.0.26
1+
FROM bfren/nginx:nginx1.22-4.0.27
22

33
LABEL org.opencontainers.image.source="https://github.com/bfren/docker-nginx-proxy"
44

VERSION

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
5.1.14
1+
5.1.15

overlay/www/maintenance.html

Lines changed: 19 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,9 +11,26 @@
1111
<body>
1212
<h1>Maintenance</h1>
1313
<p>The site you requested is temporarily down for maintenance. Please try again later.</p>
14-
<p class="muted">This page will auto-refresh every ten seconds.</p>
14+
<p class="muted">This page will auto-refresh in <span id="remaining">10</span>s.</p>
1515
<script type="text/javascript">
16-
setTimeout("location.reload(true);", 10000);
16+
let remaining = 10;
17+
let countdown = function () {
18+
// reload the page
19+
if (remaining == 0) {
20+
location.reload(true);
21+
return;
22+
}
23+
24+
// update the message and reduce time remaining
25+
document.getElementById("remaining").innerText = remaining.toString();
26+
remaining--;
27+
28+
// fire function again in one second
29+
setTimeout(countdown, 1000);
30+
}
31+
32+
// fire first time manually
33+
countdown();
1734
</script>
1835
</body>
1936
</html>

0 commit comments

Comments
 (0)