Skip to content

Commit 13da446

Browse files
committed
GitHub Actions Update
1 parent 75d4d0d commit 13da446

8 files changed

+30
-119
lines changed

.github/workflows/docker-image.yml

+18-10
Original file line numberDiff line numberDiff line change
@@ -8,29 +8,37 @@ jobs:
88
build:
99
runs-on: ubuntu-latest
1010
steps:
11-
-
11+
#-
12+
# name: Set up QEMU
13+
# uses: docker/setup-qemu-action@v3
14+
#-
15+
# name: Set up Docker Buildx
16+
# uses: docker/setup-buildx-action@v3
17+
-
1218
name: Check Out Repo
13-
uses: actions/checkout@v2
14-
-
19+
uses: actions/checkout@v4
20+
-
1521
name: Login to DockerHub
16-
uses: docker/login-action@v1
22+
uses: docker/login-action@v3
1723
with:
1824
username: ${{ secrets.DOCKERHUB_USERNAME }}
1925
password: ${{ secrets.DOCKERHUB_TOKEN }}
20-
-
26+
-
2127
name: Build and push mainline/alpine
22-
uses: docker/build-push-action@v2
28+
uses: docker/build-push-action@v5
2329
with:
24-
context: ./mainline/alpine
30+
context: ./
31+
file: mainline-alpine.Dockerfile
2532
push: true
2633
tags: docker.io/denji/nginx-boringssl:mainline-alpine
2734
cache-from: type=registry,ref=docker.io/denji/nginx-boringssl:mainline-alpine
2835
cache-to: type=inline
29-
-
36+
-
3037
name: Build and push stable/alpine
31-
uses: docker/build-push-action@v2
38+
uses: docker/build-push-action@v5
3239
with:
33-
context: ./stable/alpine
40+
context: ./
41+
file: stable-alpine.Dockerfile
3442
push: true
3543
tags: docker.io/denji/nginx-boringssl:stable-alpine
3644
cache-from: type=registry,ref=docker.io/denji/nginx-boringssl:stable-alpine
File renamed without changes.
File renamed without changes.
File renamed without changes.

generate-stackbrew-library.sh

-103
This file was deleted.

mainline/alpine/Dockerfile mainline-alpine.Dockerfile

+6-3
Original file line numberDiff line numberDiff line change
@@ -170,13 +170,16 @@ RUN GPG_KEYS=D6786CE303D9A9022998DC6CC8464D549AF75C0A \
170170
&& ln -sf /dev/stdout /var/log/nginx/access.log \
171171
&& ln -sf /dev/stderr /var/log/nginx/error.log
172172

173-
COPY nginx.conf /etc/nginx/nginx.conf
174-
COPY nginx.vh.no-default.conf /etc/nginx/conf.d/default.conf
173+
COPY conf/mainline/nginx.conf /etc/nginx/nginx.conf
174+
COPY conf/mainline/nginx.vh.no-default.conf /etc/nginx/conf.d/default.conf
175+
176+
RUN APK_ARCH="$(cat /etc/apk/arch)"
175177

176178
LABEL description="NGINX Docker built top of rolling release BoringSSL" \
177179
maintainer="Denis Denisov <[email protected]>" \
178180
openssl="BoringSSL" \
179-
nginx="nginx $NGINX_VERSION"
181+
nginx="nginx $NGINX_VERSION" \
182+
arch="$APK_ARCH"
180183

181184
EXPOSE 80 443 443/udp
182185

stable/alpine/Dockerfile stable-alpine.Dockerfile

+6-3
Original file line numberDiff line numberDiff line change
@@ -171,13 +171,16 @@ RUN GPG_KEYS=13C82A63B603576156E30A4EA0EA981B66B0D967 \
171171
&& ln -sf /dev/stdout /var/log/nginx/access.log \
172172
&& ln -sf /dev/stderr /var/log/nginx/error.log
173173

174-
COPY nginx.conf /etc/nginx/nginx.conf
175-
COPY nginx.vh.no-default.conf /etc/nginx/conf.d/default.conf
174+
COPY conf/stable/nginx.conf /etc/nginx/nginx.conf
175+
COPY conf/stable/nginx.vh.no-default.conf /etc/nginx/conf.d/default.conf
176+
177+
RUN APK_ARCH="$(cat /etc/apk/arch)"
176178

177179
LABEL description="NGINX Docker built top of rolling release BoringSSL" \
178180
maintainer="Denis Denisov <[email protected]>" \
179181
openssl="BoringSSL" \
180-
nginx="nginx $NGINX_VERSION"
182+
nginx="nginx $NGINX_VERSION" \
183+
arch="$APK_ARCH"
181184

182185
EXPOSE 80 443
183186

0 commit comments

Comments
 (0)