Skip to content
This repository was archived by the owner on Mar 25, 2026. It is now read-only.

Commit eea6582

Browse files
authored
Merge pull request #33 from tomdess/code-review
Code review (minor fixes in scripts)
2 parents 3ec5796 + a584a03 commit eea6582

3 files changed

Lines changed: 11 additions & 2 deletions

File tree

.github/workflows/docker-publish.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ jobs:
4444
# https://github.com/docker/login-action
4545
- name: Log into registry ${{ env.REGISTRY }}
4646
if: github.event_name != 'pull_request'
47-
uses: docker/login-action@28218f9b04b4f3f62068d7b6ce6ca5b26e35336c
47+
uses: docker/login-action@v2
4848
with:
4949
registry: ${{ env.REGISTRY }}
5050
username: ${{ github.actor }}
@@ -54,7 +54,7 @@ jobs:
5454
# https://github.com/docker/metadata-action
5555
- name: Extract Docker metadata
5656
id: meta
57-
uses: docker/metadata-action@98669ae865ea3cffbcbaa878cf57c20bbf1c6c38
57+
uses: docker/metadata-action@v4
5858
with:
5959
images: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}
6060

scripts/bootstrap.sh

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,11 @@
11
#!/usr/bin/env bash
22

3+
# Validate required environment variables
4+
if [ -z "$EMAIL" ]; then
5+
echo "ERROR: EMAIL environment variable is required"
6+
exit 1
7+
fi
8+
39
# save container environment variables to use it
410
# in cron scripts
511

scripts/cert-renewal-haproxy.sh

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,9 @@ function logger_info {
5656
### MAIN
5757
################################################################################
5858

59+
# Before renewal, ensure any leftover validation files are removed
60+
rm -rf ${WEBROOT}/.well-known/acme-challenge/*
61+
5962
le_cert_root="/etc/letsencrypt/live"
6063

6164
if [ ! -d ${le_cert_root} ]; then

0 commit comments

Comments
 (0)