Adding WORKER_CONNECTIONS, defaulting to 1024 (#27) #124
Workflow file for this run
This file contains hidden or 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
name: Test & Build | |
on: | |
pull_request: | |
push: | |
branches: [main] | |
tags: [v*] | |
jobs: | |
test: | |
name: Test | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Run tests | |
run: docker build --build-arg TARGETPLATFORM=linux/amd64 --target test . | |
build: | |
name: Build | |
runs-on: ubuntu-latest | |
needs: test | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
- name: Docker meta | |
id: meta | |
uses: docker/metadata-action@v5 | |
with: | |
images: lindenlab/nginx-proxy | |
tags: | | |
type=ref,event=branch | |
type=ref,event=pr | |
type=semver,pattern={{version}} | |
type=semver,pattern={{major}}.{{minor}} | |
type=semver,pattern={{major}} | |
- name: Set up QEMU | |
uses: docker/setup-qemu-action@v3 | |
- name: Set up Docker Buildx | |
uses: docker/setup-buildx-action@v3 | |
- name: Login to Docker Hub | |
uses: docker/login-action@v3 | |
if: startsWith(github.ref, 'refs/tags/v') | |
with: | |
username: ${{ secrets.SHARED_DOCKERHUB_USER }} | |
password: ${{ secrets.SHARED_DOCKERHUB_TOKEN }} | |
- name: Build and push | |
uses: docker/build-push-action@v6 | |
with: | |
context: . | |
push: ${{ startsWith(github.ref, 'refs/tags/v') }} | |
tags: ${{ steps.meta.outputs.tags }} | |
labels: ${{ steps.meta.outputs.labels }} | |
platforms: linux/amd64,linux/arm64 | |
- name: Docker Hub Description | |
uses: secondlife-3p/dockerhub-description@v4 | |
if: startsWith(github.ref, 'refs/tags/v') | |
with: | |
username: ${{ secrets.SHARED_DOCKERHUB_USER }} | |
password: ${{ secrets.SHARED_DOCKERHUB_TOKEN }} | |
repository: lindenlab/nginx-proxy | |
short-description: A basic reverse proxy sidecar | |