1
0
mirror of https://github.com/dcarrillo/docker-nginx.git synced 2025-11-20 03:12:36 +00:00

Bump nginx to 1.29.3 and refactor the building/testing

This commit is contained in:
2025-11-05 17:29:37 +01:00
parent 0e36c5ba23
commit 2926640687
9 changed files with 65 additions and 112 deletions

View File

@@ -17,7 +17,7 @@ Edit [conf.env](conf.env)
```bash
NGINX_VERSION=x.xx.x # Nginx version to build from
DOCKER_IMAGE=dcarrillo/nginx # Docker image
DOCKER_IMAGE=dcarrillo/nginx # Docker image target
```
## Build
@@ -25,19 +25,13 @@ DOCKER_IMAGE=dcarrillo/nginx # Docker image
Build locally:
```bash
./build.sh
make build
```
Build locally and upload the image to a registry (you must be logged in to the registry)
Push image (it includes latest tag):
```bash
./build.sh --push
```
Build locally, tag the image as latest and upload it to a registry (you must be logged in to the registry)
```bash
./build.sh --push --latest
make push-latest
```
## Testing
@@ -49,9 +43,5 @@ Prerequisites:
- curl
```bash
# build local image
./build.sh
# run tests
./tests/test.sh
make tests
```