File tree 5 files changed +20
-3
lines changed
5 files changed +20
-3
lines changed Original file line number Diff line number Diff line change 21
21
-
22
22
name : Checkout code
23
23
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
24
28
-
25
29
name : Read image version
26
30
uses : bfren/read-file@v1
44
48
id : docker_build
45
49
uses : docker/build-push-action@v2
46
50
with :
51
+ build-args : |
52
+ BF_IMAGE=${{ env.REPOSITORY_NAME }}
53
+ BF_VERSION=${{ steps.version.outputs.contents }}
47
54
push : ${{ startsWith(github.ref, 'refs/heads/') }}
48
55
platforms : linux/amd64,linux/arm/v7,linux/arm64
49
56
tags : |
Original file line number Diff line number Diff line change 12
12
-
13
13
name : Checkout code
14
14
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
15
19
-
16
20
name : Read image version
17
21
uses : bfren/read-file@v1
47
51
id : docker_build
48
52
uses : docker/build-push-action@v2
49
53
with :
54
+ build-args : |
55
+ BF_IMAGE=${{ env.REPOSITORY_NAME }}
56
+ BF_VERSION=${{ steps.version.outputs.contents }}
50
57
push : true
51
58
platforms : linux/amd64,linux/arm/v7,linux/arm64
52
59
tags : |
Original file line number Diff line number Diff line change 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
2
5
3
6
ENV \
4
7
# set to "r" or "rw" to enable read-only / read-write access
Original file line number Diff line number Diff line change 1
- 2.3 .0
1
+ 2.4 .0
Original file line number Diff line number Diff line change 1
- 2.3
1
+ 2.4
You can’t perform that action at this time.
0 commit comments