File tree 2 files changed +9
-13
lines changed
2 files changed +9
-13
lines changed Original file line number Diff line number Diff line change 7
7
jobs :
8
8
build :
9
9
env :
10
- NODE_LATEST : 16
10
+ NODE_LATEST : 18
11
11
runs-on : ubuntu-latest
12
12
13
13
strategy :
14
14
matrix :
15
- node : [ 14, 16, 18 ]
16
- suffix : [ "" ]
15
+ node : [ 16, 18, 20 ]
17
16
18
17
steps :
19
18
- name : 1-checkout
23
22
- name : 2-setup-image-setting
24
23
id : setting
25
24
run : |
26
- SUFFIX=""
27
- if [ "${{ matrix.suffix }}" != "" ]; then
28
- SUFFIX="-${{ matrix.suffix}}"
29
- fi
30
-
31
- TAGS="ghcr.io/${{ github.repository }}:${{ matrix.node }}$SUFFIX"
25
+ TAGS="ghcr.io/${{ github.repository }}:${{ matrix.node }}"
32
26
if [ "${{ matrix.node }}" == "${{ env.NODE_LATEST }}" ]; then
33
- TAGS="$TAGS,ghcr.io/${{ github.repository }}:latest$SUFFIX "
27
+ TAGS="$TAGS,ghcr.io/${{ github.repository }}:latest"
34
28
fi
35
29
36
30
echo "current tags $TAGS"
Original file line number Diff line number Diff line change 1
- ARG NODE_VERSION=16
1
+ ARG NODE_VERSION=18
2
2
3
3
FROM node:${NODE_VERSION}-alpine AS build
4
4
@@ -20,9 +20,11 @@ FROM node:${NODE_VERSION}-alpine
20
20
COPY --from=build /app /app
21
21
22
22
RUN set -x \
23
- && apk add --no-cache tzdata \
23
+ && apk add --no-cache tzdata libcap \
24
24
&& mkdir -p /data \
25
- && cp /app/config.json /data/config.json
25
+ && cp /app/config.json /data/config.json \
26
+ # support port 80/443
27
+ && setcap 'cap_net_bind_service=+ep' `which node`
26
28
27
29
WORKDIR /app
28
30
You can’t perform that action at this time.
0 commit comments