-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #85 from sitkoru/upd
feat: upd nginx to 1.24.0
- Loading branch information
Showing
3 changed files
with
24 additions
and
37 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -14,7 +14,7 @@ jobs: | |
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- uses: actions/checkout@v2.3.4 | ||
- uses: actions/checkout@v3 | ||
- name: Prepare | ||
id: prep | ||
run: | | ||
|
@@ -44,32 +44,21 @@ jobs: | |
echo ::set-output name=tags::${TAGS} | ||
echo ::set-output name=created::$(date -u +'%Y-%m-%dT%H:%M:%SZ') | ||
- name: Set up Docker Buildx | ||
uses: docker/[email protected] | ||
with: | ||
driver-opts: image=moby/buildkit:master | ||
- name: Cache Docker layers | ||
uses: actions/[email protected] | ||
with: | ||
path: /tmp/.buildx-cache | ||
key: ${{ runner.os }}-buildx-${{ github.sha }} | ||
restore-keys: | | ||
${{ runner.os }}-buildx- | ||
uses: docker/setup-buildx-action@v2 | ||
- name: Login to GitHub Container Registry | ||
uses: docker/login-action@v1.10.0 | ||
uses: docker/login-action@v2 | ||
with: | ||
registry: ghcr.io | ||
username: ${{ github.repository_owner }} | ||
password: ${{ secrets.GHCR_TOKEN }} | ||
username: ${{ secrets.BOT_NAME }} | ||
password: ${{ secrets.BOT_TOKEN }} | ||
- name: Build and push | ||
id: docker_build | ||
uses: docker/build-push-action@v2.7.0 | ||
uses: docker/build-push-action@v4 | ||
with: | ||
context: . | ||
file: ./Dockerfile | ||
tags: ${{ steps.prep.outputs.tags }} | ||
push: ${{ github.event_name != 'pull_request' }} | ||
cache-from: type=local,src=/tmp/.buildx-cache | ||
cache-to: type=local,dest=/tmp/.buildx-cache | ||
labels: | | ||
org.opencontainers.image.title=${{ github.event.repository.name }} | ||
org.opencontainers.image.description=${{ github.event.repository.description }} | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,30 +1,30 @@ | ||
FROM nginx:1.19.3 | ||
FROM nginx:1.24.0 as build | ||
|
||
ENV NGINX_VERSION 1.19.3 | ||
ENV NPS_VERSION 36 | ||
ENV NPSOL_VERSION 1.13.35.2-stable | ||
ENV OSSL_VERSION 1.1.1g | ||
ENV CODENAME buster | ||
ENV VTS_VERSION=0.1.18 | ||
ENV CODENAME bullseye | ||
ENV NGINX_VERSION 1.24.0 | ||
|
||
RUN apt-get update \ | ||
&& apt-get install -y build-essential zlib1g-dev libpcre3 libpcre3-dev unzip wget libcurl4-openssl-dev libjansson-dev uuid-dev libbrotli-dev | ||
&& apt-get install -y build-essential zlib1g-dev libpcre3 libpcre3-dev unzip wget libcurl4-openssl-dev libjansson-dev uuid-dev libbrotli-dev git | ||
|
||
RUN wget http://nginx.org/keys/nginx_signing.key \ | ||
&& apt-key add nginx_signing.key \ | ||
&& echo "deb http://nginx.org/packages/mainline/debian/ ${CODENAME} nginx" >> /etc/apt/sources.list \ | ||
&& echo "deb-src http://nginx.org/packages/mainline/debian/ ${CODENAME} nginx" >> /etc/apt/sources.list \ | ||
&& echo "deb http://nginx.org/packages/debian/ ${CODENAME} nginx" >> /etc/apt/sources.list \ | ||
&& echo "deb-src http://nginx.org/packages/debian/ ${CODENAME} nginx" >> /etc/apt/sources.list \ | ||
&& apt-get update \ | ||
&& apt-get build-dep -y nginx=${NGINX_VERSION}-1 | ||
|
||
WORKDIR /nginx | ||
|
||
ENV NPSOL_VERSION focal | ||
ENV OSSL_VERSION 1.1.1g | ||
ENV VTS_VERSION=0.1.18 | ||
|
||
ADD ./build.sh build.sh | ||
|
||
RUN chmod a+x ./build.sh && ./build.sh | ||
RUN apt-get download libbrotli1 | ||
|
||
|
||
FROM nginx:1.19.3 | ||
COPY --from=0 /nginx/nginx_1.19.3-1~buster_amd64.deb /nginx/libbrotli1*.deb /_pkgs/ | ||
FROM nginx:1.24.0 as publish | ||
COPY --from=build /nginx/nginx_1.24.0-1~bullseye_amd64.deb /nginx/libbrotli1*.deb /_pkgs/ | ||
RUN dpkg --install /_pkgs/*.deb && rm -rf /_pkgs |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters