-
Notifications
You must be signed in to change notification settings - Fork 14
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
4 changed files
with
45 additions
and
7 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 |
---|---|---|
@@ -0,0 +1,38 @@ | ||
name: ci | ||
|
||
on: | ||
push: | ||
branches: | ||
- master | ||
paths-ignore: | ||
- '**/README.md' | ||
tags: | ||
- '*' | ||
|
||
jobs: | ||
|
||
build-and-push: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v3 | ||
|
||
- name: Inject slug/short variables | ||
uses: rlespinasse/[email protected] | ||
|
||
- name: Login to Docker Hub | ||
uses: docker/login-action@v2 | ||
with: | ||
username: ${{ secrets.DOCKERHUB_USERNAME }} | ||
password: ${{ secrets.DOCKERHUB_TOKEN }} | ||
|
||
- name: Set up Docker Buildx | ||
uses: docker/setup-buildx-action@v2 | ||
|
||
- name: Build and push | ||
uses: docker/build-push-action@v4 | ||
with: | ||
push: true | ||
tags: | | ||
${{ secrets.DOCKERHUB_USERNAME }}/${{ env.GITHUB_REPOSITORY_NAME_PART }}:${{ env.GITHUB_REF_SLUG }} | ||
${{ secrets.DOCKERHUB_USERNAME }}/${{ env.GITHUB_REPOSITORY_NAME_PART }}:latest |
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,11 +1,11 @@ | ||
FROM ubuntu:20.04 AS builder | ||
FROM debian:12 AS builder | ||
|
||
LABEL maintainer="Yury Muski <[email protected]>" | ||
|
||
ENV NGINX_PATH /etc/nginx | ||
ENV NGINX_VERSION 1.19.6 | ||
|
||
ENV QUICHE_VERSION 0.9.0 | ||
ENV QUICHE_VERSION 0.18.0 | ||
|
||
WORKDIR /opt | ||
|
||
|
@@ -17,7 +17,7 @@ RUN curl -O https://nginx.org/download/nginx-$NGINX_VERSION.tar.gz && \ | |
git clone --branch $QUICHE_VERSION --recursive https://github.com/cloudflare/quiche && \ | ||
git clone --recursive https://github.com/google/ngx_brotli.git && \ | ||
cd nginx-$NGINX_VERSION && \ | ||
patch -p01 < ../quiche/extras/nginx/nginx-1.16.patch && \ | ||
patch -p01 < ../quiche/nginx/nginx-1.16.patch && \ | ||
curl https://sh.rustup.rs -sSf | sh -s -- -y -q && \ | ||
export PATH="$HOME/.cargo/bin:$PATH" && \ | ||
./configure \ | ||
|
@@ -68,7 +68,7 @@ RUN curl -O https://nginx.org/download/nginx-$NGINX_VERSION.tar.gz && \ | |
make && \ | ||
make install; | ||
|
||
FROM ubuntu:20.04 | ||
FROM debian:12-slim | ||
|
||
COPY --from=builder /usr/sbin/nginx /usr/sbin/ | ||
COPY --from=builder /etc/nginx/ /etc/nginx/ | ||
|
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
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