mirror of
https://github.com/cupcakearmy/docker-static.git
synced 2024-12-22 00:06:31 +00:00
trial matrix
This commit is contained in:
parent
c3c7ce22f8
commit
b6f2e57965
38
.github/workflows/trial.yml
vendored
Normal file
38
.github/workflows/trial.yml
vendored
Normal file
@ -0,0 +1,38 @@
|
|||||||
|
name: trial
|
||||||
|
|
||||||
|
on:
|
||||||
|
workflow_dispatch:
|
||||||
|
push:
|
||||||
|
# push:
|
||||||
|
# tags:
|
||||||
|
# - "v*.*.*"
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
build:
|
||||||
|
strategy:
|
||||||
|
matrix:
|
||||||
|
include:
|
||||||
|
- tag: 1.20.2
|
||||||
|
version: 1.20.2
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
steps:
|
||||||
|
- name: Set up QEMU
|
||||||
|
uses: docker/setup-qemu-action@v2
|
||||||
|
- name: Set up Docker Buildx
|
||||||
|
uses: docker/setup-buildx-action@v2
|
||||||
|
with:
|
||||||
|
install: true
|
||||||
|
# - name: Login to DockerHub
|
||||||
|
# uses: docker/login-action@v1
|
||||||
|
# with:
|
||||||
|
# username: ${{ secrets.DOCKERHUB_USERNAME }}
|
||||||
|
# password: ${{ secrets.DOCKERHUB_TOKEN }}
|
||||||
|
- name: Build and push
|
||||||
|
id: docker_build
|
||||||
|
uses: docker/build-push-action@v2
|
||||||
|
with:
|
||||||
|
# platforms: linux/amd64,linux/arm64
|
||||||
|
platforms: linux/amd64
|
||||||
|
push: false
|
||||||
|
build-args: NGINX=${{ matrix.version }}
|
||||||
|
tags: ${{ matrix.tag }}
|
@ -2,17 +2,17 @@
|
|||||||
FROM alpine AS builder
|
FROM alpine AS builder
|
||||||
|
|
||||||
ARG DEP_DEV="alpine-sdk zlib-dev pcre-dev openssl-dev gd-dev"
|
ARG DEP_DEV="alpine-sdk zlib-dev pcre-dev openssl-dev gd-dev"
|
||||||
ARG NGINX_MODULES="--with-http_realip_module --with-threads --with-http_ssl_module --with-http_v2_module --with-http_image_filter_module --with-http_gzip_static_module --with-http_secure_link_module"
|
|
||||||
ARG NGINX=1.21.6
|
|
||||||
|
|
||||||
RUN apk add --no-cache ${DEP_DEV}
|
RUN apk add --no-cache ${DEP_DEV}
|
||||||
|
|
||||||
|
|
||||||
WORKDIR /build
|
WORKDIR /build
|
||||||
|
ARG NGINX=1.21.6
|
||||||
RUN curl https://nginx.org/download/nginx-${NGINX}.tar.gz | tar xz
|
RUN curl https://nginx.org/download/nginx-${NGINX}.tar.gz | tar xz
|
||||||
RUN mv nginx-${NGINX} nginx
|
RUN mv nginx-${NGINX} nginx
|
||||||
RUN git clone --recursive https://github.com/google/ngx_brotli.git
|
RUN git clone --recursive https://github.com/google/ngx_brotli.git
|
||||||
|
|
||||||
WORKDIR /build/nginx
|
WORKDIR /build/nginx
|
||||||
|
ARG NGINX_MODULES="--with-http_realip_module --with-threads --with-http_ssl_module --with-http_v2_module --with-http_image_filter_module --with-http_gzip_static_module --with-http_secure_link_module"
|
||||||
RUN ./configure ${NGINX_MODULES} --add-module=../ngx_brotli
|
RUN ./configure ${NGINX_MODULES} --add-module=../ngx_brotli
|
||||||
RUN make
|
RUN make
|
||||||
RUN make install
|
RUN make install
|
||||||
|
Loading…
Reference in New Issue
Block a user