Skip to content

Commit 5e760ed

Browse files
authored
v2.5.0 (#64)
Major updates * Using latest base image * `nginx-regenerate`: Check against `NGXCONF` array before deleting configuration Minor updates * Moving load conf to separate inc * Adding standard double newline to inc scripts Build updates * Adding image name / version to builds
1 parent b1ba971 commit 5e760ed

File tree

13 files changed

+107
-24
lines changed

13 files changed

+107
-24
lines changed

.github/workflows/dev.yml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,10 @@ jobs:
2121
-
2222
name: Checkout code
2323
uses: actions/checkout@v2
24+
-
25+
name: Get repository name
26+
run: echo "REPOSITORY_NAME=$(echo '${{ github.repository }}' | awk -F '/' '{print $2}')" >> $GITHUB_ENV
27+
shell: bash
2428
-
2529
name: Read image version
2630
uses: bfren/read-file@v1
@@ -44,6 +48,9 @@ jobs:
4448
id: docker_build
4549
uses: docker/build-push-action@v2
4650
with:
51+
build-args: |
52+
BF_IMAGE=${{ env.REPOSITORY_NAME }}
53+
BF_VERSION=${{ steps.version.outputs.contents }}
4754
push: ${{ startsWith(github.ref, 'refs/heads/') }}
4855
platforms: linux/amd64,linux/arm/v7,linux/arm64
4956
tags: |

.github/workflows/publish.yml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,10 @@ jobs:
1212
-
1313
name: Checkout code
1414
uses: actions/checkout@v2
15+
-
16+
name: Get repository name
17+
run: echo "REPOSITORY_NAME=$(echo '${{ github.repository }}' | awk -F '/' '{print $2}')" >> $GITHUB_ENV
18+
shell: bash
1519
-
1620
name: Read image version
1721
uses: bfren/read-file@v1
@@ -47,6 +51,9 @@ jobs:
4751
id: docker_build
4852
uses: docker/build-push-action@v2
4953
with:
54+
build-args: |
55+
BF_IMAGE=${{ env.REPOSITORY_NAME }}
56+
BF_VERSION=${{ steps.version.outputs.contents }}
5057
push: true
5158
platforms: linux/amd64,linux/arm/v7,linux/arm64
5259
tags: |

Dockerfile

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,7 @@
1-
FROM bfren/nginx:nginx1.20-2.3.0
1+
FROM bfren/nginx:nginx1.20-2.4.0
2+
3+
ARG BF_IMAGE
4+
ARG BF_VERSION
25

36
# port 80 is already exposed by the base image
47
EXPOSE 443

VERSION

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
2.4.0
1+
2.5.0

VERSION_MINOR

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
2.4
1+
2.5

overlay/usr/lib/bf/inc/proxy-check.sh

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

3+
34
#======================================================================================================================
45
# Ensure PROXY_URI is set.
56
#======================================================================================================================
@@ -24,17 +25,7 @@ fi
2425
# Create arrays and include configuration.
2526
#======================================================================================================================
2627

27-
SSL_CONF=${PROXY_SSL}/conf.sh
28-
if [ ! -f ${SSL_CONF} ] ; then
29-
bf-error "You must create ${SSL_CONF} - see ssl-conf-sample.sh."
30-
exit 1
31-
fi
32-
33-
declare -A DOMAINS
34-
declare -A ALIASES
35-
declare -A NGXCONF
36-
37-
source ${SSL_CONF}
28+
source ${BF_INC}/proxy-load-conf.sh
3829

3930

4031
#======================================================================================================================
Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
#!/usr/bin/with-contenv bash
2+
3+
4+
#======================================================================================================================
5+
# Create arrays and include configuration.
6+
#======================================================================================================================
7+
8+
SSL_CONF=${PROXY_SSL}/conf.sh
9+
if [ ! -f ${SSL_CONF} ] ; then
10+
bf-error "You must create ${SSL_CONF} - see ssl-conf-sample.sh."
11+
exit 1
12+
fi
13+
14+
declare -A DOMAINS
15+
declare -A ALIASES
16+
declare -A NGXCONF
17+
18+
source ${SSL_CONF}

overlay/usr/lib/bf/inc/proxy-replace.sh

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

3+
34
#======================================================================================================================
45
# Replace a key/value pair in a file.
56
#

overlay/usr/lib/bf/inc/proxy-setup-global.sh

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

3+
34
#======================================================================================================================
45
# Set up global configuration.
56
#======================================================================================================================

overlay/usr/lib/bf/inc/proxy-setup-nginx.sh

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

3+
34
#======================================================================================================================
45
# Set up Nginx.
56
#

0 commit comments

Comments
 (0)