Compare commits
4 Commits
1de48276ff
...
main
| Author | SHA1 | Date | |
|---|---|---|---|
| 397ec295ca | |||
| 0533868bf8 | |||
| 7789e0054a | |||
| 8621903d19 |
@@ -1,16 +1,25 @@
|
|||||||
when:
|
when:
|
||||||
- event: [push, pull_request, manual]
|
- event: [push, pull_request, manual, tag]
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
|
- name: generate-tags
|
||||||
|
image: ghcr.io/abh/woodpecker-docker-tags-plugin:sha-86e52ce
|
||||||
|
settings:
|
||||||
|
tags: |
|
||||||
|
branch
|
||||||
|
sha
|
||||||
|
edge
|
||||||
|
raw -v build-${CI_PIPELINE_NUMBER}
|
||||||
|
semver --format {{major}}
|
||||||
|
semver --format {{major}}.{{minor}}
|
||||||
|
semver --format {{major}}.{{minor}}.{{patch}}
|
||||||
|
|
||||||
- name: docker
|
- name: docker
|
||||||
image: woodpeckerci/plugin-kaniko
|
image: woodpeckerci/plugin-kaniko
|
||||||
settings:
|
settings:
|
||||||
dockerfile: Dockerfile
|
dockerfile: Dockerfile
|
||||||
registry: harbor.ntppool.org
|
registry: harbor.ntppool.org
|
||||||
repo: library/static-web
|
repo: library/static-web
|
||||||
tags:
|
|
||||||
- ${CI_COMMIT_SHA:0:7}
|
|
||||||
- ${CI_COMMIT_BRANCH}
|
|
||||||
cache: true
|
cache: true
|
||||||
username:
|
username:
|
||||||
from_secret: harbor_library_username
|
from_secret: harbor_library_username
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
FROM harbor.ntppool.org/perlorg/base-os:3.22.2
|
FROM harbor.ntppool.org/perlorg/base-os:3.23.3
|
||||||
ENV BUILD_VERSION 1
|
ENV BUILD_VERSION 1
|
||||||
USER root
|
USER root
|
||||||
WORKDIR /web
|
WORKDIR /web
|
||||||
|
|||||||
16
README.md
16
README.md
@@ -19,6 +19,22 @@ To get a shell in the container run
|
|||||||
|
|
||||||
And then run `curl -H 'Host: i.perl.org' localhost` there.
|
And then run `curl -H 'Host: i.perl.org' localhost` there.
|
||||||
|
|
||||||
|
## Logging
|
||||||
|
|
||||||
|
Access logs are sent to stdout and error logs to stderr, making them
|
||||||
|
available to the container runtime's log collection.
|
||||||
|
|
||||||
|
The Apache configuration supports a `dontlog` environment variable. When
|
||||||
|
set on a request, that request is excluded from the access log. This is
|
||||||
|
useful for health check endpoints that would otherwise fill the logs.
|
||||||
|
|
||||||
|
To use it, add a `SetEnvIf` directive in your site configuration:
|
||||||
|
|
||||||
|
SetEnvIf Request_URI "^/ok.txt$" dontlog
|
||||||
|
|
||||||
|
This allows `/ok.txt` to serve as a health check endpoint without
|
||||||
|
generating access log entries.
|
||||||
|
|
||||||
## Production image
|
## Production image
|
||||||
|
|
||||||
The "production image" is at harbor.ntppool.org/library/static-web:latest
|
The "production image" is at harbor.ntppool.org/library/static-web:latest
|
||||||
|
|||||||
Reference in New Issue
Block a user